summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_http_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Allow removing private data in chrome://net-export.davidben@chromium.org2014-03-181-4/+0
| | | | | | | | | | | | | | | | | | | | | This introduces a new LogLevel, LOG_STRIP_PRIVATE_DATA, which callbacks within the network stack check to decide whether or not to report redacted data. Unfortunately, this involves duplicating the net-internals implementation, but that implementation isn't easily reusable given chrome://net-exports' constraints. Plumb this state through net-export and adjust the UI and state machine accordingly. Add various tests. This also moves HttpAuth::ChallengeTokenizer to HttpUtil::ChallengeTokenizer as some of the redaction logic reuses the parser. This avoids giving everything a dependency on HttpAuth. BUG=349502 Review URL: https://codereview.chromium.org/182523006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257645 0039d316-1c4b-4281-b951-d872f2087c98
* Use SpdyMajorVersion instead of int consistentlyrch@chromium.org2013-11-261-5/+5
| | | | | | | | as the data type to describe the SPDY version. Review URL: https://codereview.chromium.org/88693002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237422 0039d316-1c4b-4281-b951-d872f2087c98
* net: Migrate from googleurl/ includes to url/ ones.tfarina@chromium.org2013-07-121-1/+1
| | | | | | | | | | BUG=229660 R=eroman@chromium.org TBR=eroman@chromium.org Review URL: https://chromiumcodereview.appspot.com/6362186595172352 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211347 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Remove some setters in SpdyStreamakalin@chromium.org2013-03-251-0/+5
| | | | | | | | | | | | | | Instead pass parameters into SpdyStream's constructor. This simplifies SpdyStream, as we can now be sure that its priority is fixed. Add function to convert from SpdyPriority to RequestPriority, and use them to set the correct priority for push streams. Replace uses of Unretained() with weak pointers. BUG=176582 Review URL: https://codereview.chromium.org/12989038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190481 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaned up code to update listing of headersbengr@chromium.org2013-03-061-0/+4
| | | | | | | | | BUG=179382 Review URL: https://chromiumcodereview.appspot.com/12393058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186357 0039d316-1c4b-4281-b951-d872f2087c98
* Change QuicHttpStream to use SPDY header blocks for reading/writingrch@chromium.org2013-01-251-5/+6
| | | | | | | | | HTTP headers, instead of vanilla HTTP headers. Review URL: https://chromiumcodereview.appspot.com/11859035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178771 0039d316-1c4b-4281-b951-d872f2087c98
* Add SPDY request headers to DevTools.mmenke@chromium.org2012-09-071-0/+1
| | | | | | | | R=eroman@chromium.org, yurys@chromium.org BUG=73945 Review URL: https://chromiumcodereview.appspot.com/10870080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155413 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
* Make ConvertRequestPriorityToSpdyPriority aware of new SPDY 3 priorities.rch@chromium.org2012-04-171-2/+3
| | | | | | | | | BUG=123278 TEST=net_unittests Review URL: http://codereview.chromium.org/10105034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132642 0039d316-1c4b-4281-b951-d872f2087c98
* Properly handle spdy3 responses.rch@chromium.org2012-04-031-1/+9
| | | | | | | | | | | Properly handle spdy3 to SPDY proxies. BUG=120890 TEST=Run chrome with --enable-spdy3 and visit a spdy3 server Review URL: https://chromiumcodereview.appspot.com/9958023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130433 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
* Send correct request headers when using spdy 3.rch@chromium.org2012-03-151-1/+2
| | | | | | | | | | | | Require the spdy protocol version to be passed to CreateSpdyHeadersFromHttpRequest so that the correct headers will be generated. Add GetProtocolVersion methods to SpdyStream and SpdySession. Review URL: http://codereview.chromium.org/9705046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126950 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/+3
| | | | | | 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
* Refactor HttpNetworkSession construction.willchan@chromium.org2011-02-031-0/+3
| | | | | | | | | | | Introduce HttpNetworkSession::Params. This should make it easy to add new optionally NULL parameters. I also took this opportunity to eliminate some copy/pastes of TestURLRequestContext and make them use the original. I was also able to remove the need for ClientSocketFactory::GetDefaultFactory() calls and new SpdySessionPool() calls in most places. BUG=none TEST=none Review URL: http://codereview.chromium.org/6349028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73669 0039d316-1c4b-4281-b951-d872f2087c98
* Missing comment change from last checkin.mbelshe@chromium.org2010-12-071-2/+2
| | | | | | | | BUG=none TEST=na git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68452 0039d316-1c4b-4281-b951-d872f2087c98
* Move BuildRequestHeaders from HttpNetworkTransaction to rch@chromium.org2010-10-201-1/+3
| | | | | | | | | | | | | HttpUtil::BuildRequestHeaders, so that it can be used directly by SpdyHttpStream, removing the code duplication. Strip proxy-connection header from SPDY requests to be consistent with Connection header. BUG=none TEST=none Review URL: http://codereview.chromium.org/3831005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63213 0039d316-1c4b-4281-b951-d872f2087c98
* Change forward declaration of HttpRequestInfo from class to struct torch@chromium.org2010-09-151-1/+1
| | | | | | | | | fix build breakage. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59584 0039d316-1c4b-4281-b951-d872f2087c98
* Move two methods in spdy_http_stream.cc from an anonymous namespacerch@chromium.org2010-09-151-0/+32
into public static methods of SpdyHttpStream. This is in preparation for the SpdyProxyClientSocket which desires to make use of this functionality. // Convert a SpdyHeaderBlock into an HttpResponseInfo. // |headers| input parameter with the SpdyHeaderBlock. // |info| output parameter for the HttpResponseInfo. // Returns true if successfully converted. False if there was a failure // or if the SpdyHeaderBlock was invalid. static bool SpdyHeadersToHttpResponse(const spdy::SpdyHeaderBlock& headers, net::HttpResponseInfo* response); // Create a SpdyHeaderBlock for a Spdy SYN_STREAM Frame from // a HttpRequestInfo block. static void CreateSpdyHeadersFromHttpRequest(const net::HttpRequestInfo& info, spdy::SpdyHeaderBlock* headers, bool direct); BUG=none TEST=none Review URL: http://codereview.chromium.org/3441004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59580 0039d316-1c4b-4281-b951-d872f2087c98