diff options
author | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-17 18:01:40 +0000 |
---|---|---|
committer | mef@chromium.org <mef@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-17 18:01:40 +0000 |
commit | e6d017658f1f60b06eebff1b0ac5ba6751b8daa7 (patch) | |
tree | 570100639ba4ce142591694b297b0218d55e54a5 /net/http/http_request_info.h | |
parent | 8fcb7fa663d0ec60859e931c01929baa64ee47e4 (diff) | |
download | chromium_src-e6d017658f1f60b06eebff1b0ac5ba6751b8daa7.zip chromium_src-e6d017658f1f60b06eebff1b0ac5ba6751b8daa7.tar.gz chromium_src-e6d017658f1f60b06eebff1b0ac5ba6751b8daa7.tar.bz2 |
ChannelID-less Connections in Chrome should be more granular.
Added enum PrivacyMode (Enabled/Disabled) to mark connections which should not use ChannelID even if it is globally enabled.
PrivacyMode is enabled if user blocks sending or saving cookies to/from particular server, taking in account third party cookie settings as well. See crbug.com/223191 for design doc.
Segmented client socket pools according to privacy mode setting used for particular connection (added 'pm/' prefix to pool key. Introduced SpdySessionKey structure and added PrivacyMode to the key of SpdySessionPool.
Added propagation of Privacy Mode setting from Web Sockets. Added check of Privacy Mode to predictor and pre-connect logic.
BUG=223191
TEST=unit_tests gtest_filter=ChromeNetworkDelegatePrivacyModeTest*
Review URL: https://chromiumcodereview.appspot.com/13008028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_request_info.h')
-rw-r--r-- | net/http/http_request_info.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_request_info.h b/net/http/http_request_info.h index 1f8c80c..5b94427 100644 --- a/net/http/http_request_info.h +++ b/net/http/http_request_info.h @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "googleurl/src/gurl.h" #include "net/base/net_export.h" +#include "net/base/privacy_mode.h" #include "net/http/http_request_headers.h" namespace net { @@ -51,6 +52,10 @@ struct NET_EXPORT HttpRequestInfo { // An optional globally unique identifier for this request for use by the // consumer. 0 is invalid. uint64 request_id; + + // If enabled, then request must be sent over connection that cannot be + // tracked by the server (e.g. without channel id). + PrivacyMode privacy_mode; }; } // namespace net |