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

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

Issue 2565523002: Instrument SpdySessionPool using MemoryDumpProvider (Closed)
Patch Set: Address comments Created 4 years 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_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 #ifndef NET_SPDY_SPDY_SESSION_POOL_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_POOL_H_
6 #define NET_SPDY_SPDY_SESSION_POOL_H_ 6 #define NET_SPDY_SPDY_SESSION_POOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "net/base/host_port_pair.h" 18 #include "net/base/host_port_pair.h"
19 #include "net/base/ip_endpoint.h" 19 #include "net/base/ip_endpoint.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/base/net_export.h" 21 #include "net/base/net_export.h"
22 #include "net/base/network_change_notifier.h" 22 #include "net/base/network_change_notifier.h"
23 #include "net/cert/cert_database.h" 23 #include "net/cert/cert_database.h"
24 #include "net/proxy/proxy_config.h" 24 #include "net/proxy/proxy_config.h"
25 #include "net/proxy/proxy_server.h" 25 #include "net/proxy/proxy_server.h"
26 #include "net/spdy/spdy_session_key.h" 26 #include "net/spdy/spdy_session_key.h"
27 #include "net/ssl/ssl_config_service.h" 27 #include "net/ssl/ssl_config_service.h"
28 28
29 namespace base {
30 namespace trace_event {
31 class ProcessMemoryDump;
32 }
33 }
34
29 namespace net { 35 namespace net {
30 36
31 class ClientSocketHandle; 37 class ClientSocketHandle;
32 class HostResolver; 38 class HostResolver;
33 class HttpServerProperties; 39 class HttpServerProperties;
34 class NetLogWithSource; 40 class NetLogWithSource;
35 class ProxyDelegate; 41 class ProxyDelegate;
36 class SpdySession; 42 class SpdySession;
37 class TransportSecurityState; 43 class TransportSecurityState;
38 44
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 142
137 // We perform the same flushing as described above when SSL settings change. 143 // We perform the same flushing as described above when SSL settings change.
138 void OnSSLConfigChanged() override; 144 void OnSSLConfigChanged() override;
139 145
140 // CertDatabase::Observer methods: 146 // CertDatabase::Observer methods:
141 147
142 // We perform the same flushing as described above when certificate database 148 // We perform the same flushing as described above when certificate database
143 // is changed. 149 // is changed.
144 void OnCertDBChanged(const X509Certificate* cert) override; 150 void OnCertDBChanged(const X509Certificate* cert) override;
145 151
152 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
153 const std::string& parent_dump_absolute_name) const;
154
146 private: 155 private:
147 friend class SpdySessionPoolPeer; // For testing. 156 friend class SpdySessionPoolPeer; // For testing.
148 157
149 typedef std::set<SpdySession*> SessionSet; 158 typedef std::set<SpdySession*> SessionSet;
150 typedef std::vector<base::WeakPtr<SpdySession> > WeakSessionList; 159 typedef std::vector<base::WeakPtr<SpdySession> > WeakSessionList;
151 typedef std::map<SpdySessionKey, base::WeakPtr<SpdySession> > 160 typedef std::map<SpdySessionKey, base::WeakPtr<SpdySession> >
152 AvailableSessionMap; 161 AvailableSessionMap;
153 typedef std::map<IPEndPoint, SpdySessionKey> AliasMap; 162 typedef std::map<IPEndPoint, SpdySessionKey> AliasMap;
154 typedef std::map<GURL, WeakSessionList> UnclaimedPushedStreamMap; 163 typedef std::map<GURL, WeakSessionList> UnclaimedPushedStreamMap;
155 164
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // resources from origins that are different from those of their associated 231 // resources from origins that are different from those of their associated
223 // streams. May be nullptr. 232 // streams. May be nullptr.
224 ProxyDelegate* proxy_delegate_; 233 ProxyDelegate* proxy_delegate_;
225 234
226 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool); 235 DISALLOW_COPY_AND_ASSIGN(SpdySessionPool);
227 }; 236 };
228 237
229 } // namespace net 238 } // namespace net
230 239
231 #endif // NET_SPDY_SPDY_SESSION_POOL_H_ 240 #endif // NET_SPDY_SPDY_SESSION_POOL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698