| 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/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/base/privacy_mode.h" | 9 #include "net/base/privacy_mode.h" |
| 10 #include "net/proxy/proxy_server.h" | 10 #include "net/proxy/proxy_server.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 const ProxyServer& proxy_server() const { | 44 const ProxyServer& proxy_server() const { |
| 45 return host_port_proxy_pair_.second; | 45 return host_port_proxy_pair_.second; |
| 46 } | 46 } |
| 47 | 47 |
| 48 PrivacyMode privacy_mode() const { | 48 PrivacyMode privacy_mode() const { |
| 49 return privacy_mode_; | 49 return privacy_mode_; |
| 50 } | 50 } |
| 51 | 51 |
| 52 // Returns the estimate of dynamically allocated memory in bytes. |
| 53 size_t EstimateMemoryUsage() const; |
| 54 |
| 52 private: | 55 private: |
| 53 HostPortProxyPair host_port_proxy_pair_; | 56 HostPortProxyPair host_port_proxy_pair_; |
| 54 // If enabled, then session cannot be tracked by the server. | 57 // If enabled, then session cannot be tracked by the server. |
| 55 PrivacyMode privacy_mode_; | 58 PrivacyMode privacy_mode_; |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 } // namespace net | 61 } // namespace net |
| 59 | 62 |
| 60 #endif // NET_SPDY_SPDY_SESSION_KEY_H_ | 63 #endif // NET_SPDY_SPDY_SESSION_KEY_H_ |
| OLD | NEW |