Bug 41416 - Add WebProcessProxy::send
Summary: Add WebProcessProxy::send
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 09:41 PDT by Anders Carlsson
Modified: 2010-06-30 10:02 PDT (History)
0 users

See Also:


Attachments
Patch (15.46 KB, patch)
2010-06-30 09:43 PDT, Anders Carlsson
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2010-06-30 09:41:41 PDT
Add WebProcessProxy::send
Comment 1 Anders Carlsson 2010-06-30 09:43:56 PDT
Created attachment 60127 [details]
Patch
Comment 2 Adam Roben (:aroben) 2010-06-30 09:56:55 PDT
Comment on attachment 60127 [details]
Patch

> +    CoreIPC::Connection* connection() const
> +    { 
> +        ASSERT(m_connection);
> +        
> +        return m_connection.get(); 
> +    }

I don't see any callers of this new function.

> +template<typename E, typename T>
> +bool WebProcessProxy::send(E messageID, uint64_t destinationID, const T& arguments)
> +{
> +    std::auto_ptr<CoreIPC::ArgumentEncoder> argumentEncoder(new CoreIPC::ArgumentEncoder(destinationID));
> +    argumentEncoder->encode(arguments);
> +
> +    return sendMessage(CoreIPC::MessageID(messageID), argumentEncoder);
> +}

Why are you using auto_ptr instead of OwnPtr?

r=me
Comment 3 Anders Carlsson 2010-06-30 09:57:58 PDT
(In reply to comment #2)
> (From update of attachment 60127 [details])
> > +    CoreIPC::Connection* connection() const
> > +    { 
> > +        ASSERT(m_connection);
> > +        
> > +        return m_connection.get(); 
> > +    }
> 
> I don't see any callers of this new function.

It's not a new function, I simply added an assert to connection().

> 
> Why are you using auto_ptr instead of OwnPtr?

We just haven't changed CoreIPC over to using wtf types everywhere.

> r=me

Thanks!
Comment 4 Anders Carlsson 2010-06-30 10:02:41 PDT
Fixed in http://trac.webkit.org/projects/webkit/changeset/62190