summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_simple_job.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 20:17:35 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 20:17:35 +0000
commitb196ce96ccd89a14435010a71cb7a7635c19016a (patch)
treeba61b02d61b3fa860c555c1d3f34b58f4434d627 /net/url_request/url_request_simple_job.cc
parent52400c7fdc2430781e22a311e1b35109f96f8ceb (diff)
downloadchromium_src-b196ce96ccd89a14435010a71cb7a7635c19016a.zip
chromium_src-b196ce96ccd89a14435010a71cb7a7635c19016a.tar.gz
chromium_src-b196ce96ccd89a14435010a71cb7a7635c19016a.tar.bz2
Revert 31277 - Take 2:
Rework the FlipProtocol to separate the Clike structs from the methods. Without this refactoring, we didn't have a clean way to allocate and deallocate FlipFrames. Now we can use the scoped_ptr cleanly. Summary of misc changes: * Merged in some small changes from the GFE side. * flip_protocol.h Changes substantially. We now have separate structs and classes. No longer can you cast from one frame type to another. All FlipFrame classes derive from FlipFrame. A FlipFrame owns a buffer which is used for the frame, and when you create the Frame, you can specify whether the FlipFrame will selfclean its buffer or not. This makes it cheap to instantiate a FlipFrame class on the stack and use it temporarily for accessing fields without having to do any copies or allocations. * You can't use sizeof(FlipFrame) anymore that is now a class. Added a static "size()" method to each FlipFrame type for declaring its real size. * Refactored a couple of routines in flip_framer. These were previously in a huge state machine (ProcessInput), just copied the code into subroutines. * Added flip_protocol_test to the mix from the gfe side. Much of this is a refactoring from flip_framer_test. * Eliminated reinterpret_casts as much as I could and got rid of all uses of scoped_array for FlipFrames. BUG=none TEST=all flip tests reworked Review URL: http://codereview.chromium.org/376012 TBR=mbelshe@google.com Review URL: http://codereview.chromium.org/371027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_simple_job.cc')
0 files changed, 0 insertions, 0 deletions