Bug 108514 - Get rid of IncomingMessage
Summary: Get rid of IncomingMessage
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-31 12:30 PST by Anders Carlsson
Modified: 2013-01-31 12:48 PST (History)
1 user (show)

See Also:


Attachments
Patch (13.50 KB, patch)
2013-01-31 12:31 PST, Anders Carlsson
sam: 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 2013-01-31 12:30:56 PST
Get rid of IncomingMessage
Comment 1 Anders Carlsson 2013-01-31 12:31:39 PST
Created attachment 185838 [details]
Patch
Comment 2 Sam Weinig 2013-01-31 12:40:24 PST
Comment on attachment 185838 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=185838&action=review

> Source/WebKit2/Platform/CoreIPC/Connection.cpp:92
> +        // FIXME: This should really an be OwnPtr,
> +        // but we need Vector to work with move semantics first.

The bug here is https://bugs.webkit.org/show_bug.cgi?id=87594.  But, is this really true.  Can't you use VectorTraits?  Vector already knows how to work with OwnPtr for instance.
Comment 3 Anders Carlsson 2013-01-31 12:41:33 PST
(In reply to comment #2)
> (From update of attachment 185838 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=185838&action=review
> 
> > Source/WebKit2/Platform/CoreIPC/Connection.cpp:92
> > +        // FIXME: This should really an be OwnPtr,
> > +        // but we need Vector to work with move semantics first.
> 
> The bug here is https://bugs.webkit.org/show_bug.cgi?id=87594.  But, is this really true.  Can't you use VectorTraits?  Vector already knows how to work with OwnPtr for instance.

I can't use VectorTraits because that there's still copying involved when passing the struct to Vector::append.
Comment 4 Sam Weinig 2013-01-31 12:42:11 PST
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 185838 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=185838&action=review
> > 
> > > Source/WebKit2/Platform/CoreIPC/Connection.cpp:92
> > > +        // FIXME: This should really an be OwnPtr,
> > > +        // but we need Vector to work with move semantics first.
> > 
> > The bug here is https://bugs.webkit.org/show_bug.cgi?id=87594.  But, is this really true.  Can't you use VectorTraits?  Vector already knows how to work with OwnPtr for instance.
> 
> I can't use VectorTraits because that there's still copying involved when passing the struct to Vector::append.

I see.
Comment 5 Anders Carlsson 2013-01-31 12:48:39 PST
Committed r141465: <http://trac.webkit.org/changeset/141465>