Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: net/spdy/spdy_session_key.cc

Issue 217053010: Revert of Rename PrivateMode enum values: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_unittest.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_session_key.h" 5 #include "net/spdy/spdy_session_key.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 SpdySessionKey::SpdySessionKey() : privacy_mode_(PRIVACY_MODE_DISABLED) { 11 SpdySessionKey::SpdySessionKey() : privacy_mode_(kPrivacyModeDisabled) {
12 } 12 }
13 13
14 SpdySessionKey::SpdySessionKey(const HostPortPair& host_port_pair, 14 SpdySessionKey::SpdySessionKey(const HostPortPair& host_port_pair,
15 const ProxyServer& proxy_server, 15 const ProxyServer& proxy_server,
16 PrivacyMode privacy_mode) 16 PrivacyMode privacy_mode)
17 : host_port_proxy_pair_(host_port_pair, proxy_server), 17 : host_port_proxy_pair_(host_port_pair, proxy_server),
18 privacy_mode_(privacy_mode) { 18 privacy_mode_(privacy_mode) {
19 DVLOG(1) << "SpdySessionKey(host=" << host_port_pair.ToString() 19 DVLOG(1) << "SpdySessionKey(host=" << host_port_pair.ToString()
20 << ", proxy=" << proxy_server.ToURI() 20 << ", proxy=" << proxy_server.ToURI()
21 << ", privacy=" << privacy_mode; 21 << ", privacy=" << privacy_mode;
(...skipping 19 matching lines...) Expand all
41 } 41 }
42 42
43 bool SpdySessionKey::Equals(const SpdySessionKey& other) const { 43 bool SpdySessionKey::Equals(const SpdySessionKey& other) const {
44 return privacy_mode_ == other.privacy_mode_ && 44 return privacy_mode_ == other.privacy_mode_ &&
45 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) && 45 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) &&
46 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second; 46 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second;
47 } 47 }
48 48
49 } // namespace net 49 } // namespace net
50 50
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_unittest.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698