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

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

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 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
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_key.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) 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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698