summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_frame_builder.h
Commit message (Collapse)AuthorAgeFilesLines
* net: Update the include paths of base/string_piece.h to its new location.tfarina@chromium.org2013-04-131-1/+1
| | | | | | | | | | | string_piece.h was moved into base/strings/ in r191206 - https://chromiumcodereview.appspot.com/12982018/ TBR=eroman@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/14223008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194055 0039d316-1c4b-4281-b951-d872f2087c98
* Convert SpdyControlType to SpdyFrameTypeakalin@chromium.org2013-04-091-2/+2
| | | | | | | | | | | | | | | | | | | Remove NUM_CONTROL_FRAME_TYPES (used to indicate a data frame) and replace it with a DATA enum value. Also add {FIRST,LAST}_CONTROL_TYPE enum values and use them in checks. Strengthen error checking in spdy_framer.cc -- previously, converting to an enum type may inadvertently convert an invalid value to a valid one. This lands server change 45004245. Also take advantage of new enum values in some test functions. Review URL: https://codereview.chromium.org/13849003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193145 0039d316-1c4b-4281-b951-d872f2087c98
* Overhaul of how SPDY frame headers are written, useful for SPDY 4 development.akalin@chromium.org2013-02-261-15/+15
| | | | | | | | | | Also gets rid of SpdyFrame::kHeaderSize. This lands server change 42903918. Review URL: https://codereview.chromium.org/12313087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184773 0039d316-1c4b-4281-b951-d872f2087c98
* Add SpdyFrame::size() field and prefer its usage to length() + kHeaderSizeakalin@chromium.org2013-02-261-1/+1
| | | | | | | | | | | | Useful in SPDY 4 development. This lands server change 42885974. Also cherry-pick fix for offset calculation bug causing ReadCredentialFrameWithCorruptCertificate test to fail. Review URL: https://codereview.chromium.org/12314064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184549 0039d316-1c4b-4281-b951-d872f2087c98
* Remove SpdyDataFrame references from VTL.akalin@chromium.org2013-02-191-0/+7
| | | | | | | | | | Introduces API for creating SPDY DATA frame headers without payload (to avoid extra payload copies). This lands server change 42554988. Review URL: https://codereview.chromium.org/12207193 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183305 0039d316-1c4b-4281-b951-d872f2087c98
* Serious cleanup of SpdyFramer compression code:akalin@chromium.org2013-02-151-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | * Move the compression logic into SerializeNameValueBlock. * Get rid of accessory methods like 'IsCompressible' and 'CompressControlFrame'. * Get us a few steps closer to removing SpdyControlFrame. * Add some logic to SpdyFrameBuilder to be able to build test frames more easily. * Remove need for 'compressed' argument in CreateSynStream, CreateSynReply and CreateHeaders. The argument has been left in with a DCHECK ensuring correct behavior in order to illustrate that zero behavioral change has been made. It will be removed in a follow-up CL. * Lots of other cleanup. Zero change to on-the-wire results and behavior. This lands server change 42232412. Also replaces OnControlFrameCompressed with OnSynStreamCompressed. Also maintains Chrome-specific behavior, like USE_SYSTEM_ZLIB switching and the CRIME fixes in r151720. Also pass through enable_compression_ flag in SpdySession. BUG=139744 Review URL: https://codereview.chromium.org/12263029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182753 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor in preparation for SPDY 4, part 1.akalin@chromium.org2013-02-121-1/+3
| | | | | | | | | | | | | | Zero behavioral change to the on-the-wire format nor protocol semantics. This lands server change 40997047. Also create spdy_protocol.cc and move some functions to it to avoid clang warnings. Review URL: https://chromiumcodereview.appspot.com/12220116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182053 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused methods from SpdyFrameBuilder.rch@chromium.org2013-01-091-33/+8
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11782024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175705 0039d316-1c4b-4281-b951-d872f2087c98
* A few more minor refactors to spdy code for spdy-over-quic. We need to be ↵rch@chromium.org2012-12-191-0/+3
| | | | | | | | | | | able to write header blocks without control frames, since the information in syn streams should be handled at the QUIC layer. Merge internal change: 33999615 Review URL: https://chromiumcodereview.appspot.com/11635025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174030 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Change SpdyFrameBuilder::length() to return size_t instead of int to avoid a ↵rch@chromium.org2012-04-211-1/+1
| | | | | | | | bunch of static_casts in SpdyFramer. Review URL: http://codereview.chromium.org/10162008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133321 0039d316-1c4b-4281-b951-d872f2087c98
* Bring spdy_frame_builder.{h,cc} into agreement with server code.rch@chromium.org2012-04-181-2/+2
| | | | | | Review URL: http://codereview.chromium.org/10116005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132705 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out the code to write control and frame headers into a new ↵rch@chromium.org2012-04-161-4/+10
| | | | | | | | | | | constructors of SpdyFrameBuilder. Remove unused empty SpdyFrameBuilder constructor. Review URL: http://codereview.chromium.org/10053029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132428 0039d316-1c4b-4281-b951-d872f2087c98
* Remove resize support from SpdyFrameBuilderrch@chromium.org2012-04-131-14/+5
| | | | | | Review URL: http://codereview.chromium.org/10053028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132113 0039d316-1c4b-4281-b951-d872f2087c98
* Land SpdyFramer (et. al.) changes to support setting the credential slot id ↵rch@chromium.org2012-03-231-0/+3
| | | | | | | | | | | in SYN_STREAM. Add credential_slot to BufferedSpdyFramer::CreateSynStream Review URL: http://codereview.chromium.org/9839013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128382 0039d316-1c4b-4281-b951-d872f2087c98
* Move all objects from the spdy:: namespace to net::rch@chromium.org2012-03-221-2/+2
| | | | | | Review URL: http://codereview.chromium.org/9815028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128310 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - integration of spdy/3 code.rtenneti@google.com2012-03-121-39/+5
| | | | | | | | TEST=network unit tests and browser unit_tests R=willchan Review URL: https://chromiumcodereview.appspot.com/9618002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126175 0039d316-1c4b-4281-b951-d872f2087c98
* Move net/base/sys_byteorder.h to base/sys_byteorder.hisherman@chromium.org2011-12-281-1/+1
| | | | | | | | | | | | | | Two motivations: (1) There are currently clients in src/crypto that need the same logic. (2) There is soon to be a client in src/chrome/common that needs the 64-bit version of this logic, which is currently inlined in a src/crypto implementation file. BUG=103480 TEST=compiles Review URL: http://codereview.chromium.org/8949026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115926 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to SpdyFramer for the CREDENTIAL frame.rch@chromium.org2011-12-271-1/+4
| | | | | | | | | BUG=106103 TEST=None Review URL: http://codereview.chromium.org/8893003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115835 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY changes from server.rtenneti@chromium.org2011-11-291-3/+3
| | | | | | | R=willchan Review URL: http://codereview.chromium.org/8473007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111854 0039d316-1c4b-4281-b951-d872f2087c98
* Merge spdy_framer changes from server.rtenneti@chromium.org2011-11-041-0/+4
| | | | | | | | | R=willchan TEST=network unit tests Review URL: http://codereview.chromium.org/8437098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108585 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-121-2/+2
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* Net: Add NET_API to socket_stream and spdy.rvargas@google.com2011-05-191-2/+3
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7044021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86011 0039d316-1c4b-4281-b951-d872f2087c98
* Add net/base/sys_byteorder.hsergeyu@chromium.org2011-04-181-6/+1
| | | | | | | | | TEST=compiles BUG=None Review URL: http://codereview.chromium.org/6870021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81966 0039d316-1c4b-4281-b951-d872f2087c98
* Even more reordering the methods in headers and implementation in net/.erg@google.com2011-01-201-1/+2
| | | | | | | | | BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6314010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71880 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 7)thestig@chromium.org2010-08-271-6/+5
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3176026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57737 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* The great Flip -> Spdy rename.mbelshe@chromium.org2010-02-081-26/+26
| | | | | | | | | BUG=30747 TEST=none Review URL: http://codereview.chromium.org/580009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38386 0039d316-1c4b-4281-b951-d872f2087c98
* Rename all files from flip* to spdy*.mbelshe@chromium.org2010-02-061-0/+163
I haven't yet renamed the classes. BUG=30747 TEST=none Review URL: http://codereview.chromium.org/582001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38315 0039d316-1c4b-4281-b951-d872f2087c98