Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 18 matching lines...) Expand all Loading... | |
| 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_protocol.h" | 31 #include "net/spdy/spdy_protocol.h" |
| 32 #include "net/spdy/spdy_session_pool.h" | 32 #include "net/spdy/spdy_session_pool.h" |
| 33 #include "net/ssl/ssl_client_auth_cache.h" | 33 #include "net/ssl/ssl_client_auth_cache.h" |
| 34 | 34 |
| 35 namespace base { | 35 namespace base { |
| 36 class Value; | 36 class Value; |
| 37 namespace trace_event { | 37 namespace trace_event { |
| 38 class ProcessMemoryDump; | 38 class ProcessMemoryDump; |
| 39 struct MemoryDumpArgs; | |
| 39 } | 40 } |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace net { | 43 namespace net { |
| 43 | 44 |
| 44 class CTPolicyEnforcer; | 45 class CTPolicyEnforcer; |
| 45 class CertVerifier; | 46 class CertVerifier; |
| 46 class ChannelIDService; | 47 class ChannelIDService; |
| 47 class ClientSocketFactory; | 48 class ClientSocketFactory; |
| 48 class ClientSocketPoolManager; | 49 class ClientSocketPoolManager; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 | 290 |
| 290 // Populates |server_config| and |proxy_config| based on this session and | 291 // Populates |server_config| and |proxy_config| based on this session and |
| 291 // |request|. | 292 // |request|. |
| 292 void GetSSLConfig(const HttpRequestInfo& request, | 293 void GetSSLConfig(const HttpRequestInfo& request, |
| 293 SSLConfig* server_config, | 294 SSLConfig* server_config, |
| 294 SSLConfig* proxy_config) const; | 295 SSLConfig* proxy_config) const; |
| 295 | 296 |
| 296 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name | 297 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name |
| 297 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. | 298 // used by the parent MemoryAllocatorDump in the memory dump hierarchy. |
| 298 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, | 299 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd, |
| 300 const base::trace_event::MemoryDumpArgs& args, | |
|
ssid
2017/01/13 22:23:58
You don't need to add an argument here. You can us
xunjieli
2017/01/17 17:51:24
Done.
| |
| 299 const std::string& parent_absolute_name) const; | 301 const std::string& parent_absolute_name) const; |
| 300 | 302 |
| 301 // Evaluates if QUIC is enabled for new streams. | 303 // Evaluates if QUIC is enabled for new streams. |
| 302 bool IsQuicEnabled() const; | 304 bool IsQuicEnabled() const; |
| 303 | 305 |
| 304 // Disable QUIC for new streams. | 306 // Disable QUIC for new streams. |
| 305 void DisableQuic(); | 307 void DisableQuic(); |
| 306 | 308 |
| 307 private: | 309 private: |
| 308 friend class HttpNetworkSessionPeer; | 310 friend class HttpNetworkSessionPeer; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 NextProtoVector next_protos_; | 343 NextProtoVector next_protos_; |
| 342 | 344 |
| 343 Params params_; | 345 Params params_; |
| 344 | 346 |
| 345 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 347 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 346 }; | 348 }; |
| 347 | 349 |
| 348 } // namespace net | 350 } // namespace net |
| 349 | 351 |
| 350 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 352 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |