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

Side by Side Diff: net/http/http_network_session.h

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)
Patch Set: Fix flaky test 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 | « no previous file | net/http/http_network_session.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_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "net/dns/host_resolver.h" 26 #include "net/dns/host_resolver.h"
27 #include "net/http/http_auth_cache.h" 27 #include "net/http/http_auth_cache.h"
28 #include "net/http/http_stream_factory.h" 28 #include "net/http/http_stream_factory.h"
29 #include "net/quic/chromium/quic_stream_factory.h" 29 #include "net/quic/chromium/quic_stream_factory.h"
30 #include "net/socket/next_proto.h" 30 #include "net/socket/next_proto.h"
31 #include "net/spdy/spdy_session_pool.h" 31 #include "net/spdy/spdy_session_pool.h"
32 #include "net/ssl/ssl_client_auth_cache.h" 32 #include "net/ssl/ssl_client_auth_cache.h"
33 33
34 namespace base { 34 namespace base {
35 class Value; 35 class Value;
36 namespace trace_event {
37 class ProcessMemoryDump;
38 }
36 } 39 }
37 40
38 namespace net { 41 namespace net {
39 42
40 class CTPolicyEnforcer; 43 class CTPolicyEnforcer;
41 class CertVerifier; 44 class CertVerifier;
42 class ChannelIDService; 45 class ChannelIDService;
43 class ClientSocketFactory; 46 class ClientSocketFactory;
44 class ClientSocketPoolManager; 47 class ClientSocketPoolManager;
45 class CTVerifier; 48 class CTVerifier;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 271
269 // Populates |*alpn_protos| with protocols to be used with ALPN. 272 // Populates |*alpn_protos| with protocols to be used with ALPN.
270 void GetAlpnProtos(NextProtoVector* alpn_protos) const; 273 void GetAlpnProtos(NextProtoVector* alpn_protos) const;
271 274
272 // Populates |server_config| and |proxy_config| based on this session and 275 // Populates |server_config| and |proxy_config| based on this session and
273 // |request|. 276 // |request|.
274 void GetSSLConfig(const HttpRequestInfo& request, 277 void GetSSLConfig(const HttpRequestInfo& request,
275 SSLConfig* server_config, 278 SSLConfig* server_config,
276 SSLConfig* proxy_config) const; 279 SSLConfig* proxy_config) const;
277 280
281 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
282 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
283 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
284 const std::string& parent_absolute_name) const;
285
278 private: 286 private:
279 friend class HttpNetworkSessionPeer; 287 friend class HttpNetworkSessionPeer;
280 288
281 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); 289 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type);
282 290
283 // Flush sockets on low memory notifications callback. 291 // Flush sockets on low memory notifications callback.
284 void OnMemoryPressure( 292 void OnMemoryPressure(
285 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); 293 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
286 294
287 // base::MemoryCoordinatorClient implementation: 295 // base::MemoryCoordinatorClient implementation:
(...skipping 23 matching lines...) Expand all
311 NextProtoVector next_protos_; 319 NextProtoVector next_protos_;
312 320
313 Params params_; 321 Params params_;
314 322
315 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 323 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
316 }; 324 };
317 325
318 } // namespace net 326 } // namespace net
319 327
320 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 328 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698