OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef NET_SPDY_SPDY_SESSION_KEY_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_KEY_H_ |
6 #define NET_SPDY_SPDY_SESSION_KEY_H_ | 6 #define NET_SPDY_SPDY_SESSION_KEY_H_ |
7 | 7 |
8 #include "net/base/privacy_mode.h" | 8 #include "net/base/privacy_mode.h" |
9 #include "net/proxy/proxy_server.h" | 9 #include "net/proxy/proxy_server.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 const HostPortPair& host_port_pair() const { | 37 const HostPortPair& host_port_pair() const { |
38 return host_port_proxy_pair_.first; | 38 return host_port_proxy_pair_.first; |
39 } | 39 } |
40 | 40 |
41 const ProxyServer& proxy_server() const { | 41 const ProxyServer& proxy_server() const { |
42 return host_port_proxy_pair_.second; | 42 return host_port_proxy_pair_.second; |
43 } | 43 } |
44 | 44 |
45 PrivacyMode privacy_mode() const { | 45 PrivacyMode privacy_mode() const { return privacy_mode_; } |
46 return privacy_mode_; | |
47 } | |
48 | 46 |
49 private: | 47 private: |
50 HostPortProxyPair host_port_proxy_pair_; | 48 HostPortProxyPair host_port_proxy_pair_; |
51 // If enabled, then session cannot be tracked by the server. | 49 // If enabled, then session cannot be tracked by the server. |
52 PrivacyMode privacy_mode_; | 50 PrivacyMode privacy_mode_; |
53 }; | 51 }; |
54 | 52 |
55 } // namespace net | 53 } // namespace net |
56 | 54 |
57 #endif // NET_SPDY_SPDY_SESSION_KEY_H_ | 55 #endif // NET_SPDY_SPDY_SESSION_KEY_H_ |
58 | |
OLD | NEW |