| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ProxyService; | 49 class ProxyService; |
| 50 class QuicClock; | 50 class QuicClock; |
| 51 class QuicCryptoClientStreamFactory; | 51 class QuicCryptoClientStreamFactory; |
| 52 class QuicServerInfoFactory; | 52 class QuicServerInfoFactory; |
| 53 class SocketPerformanceWatcherFactory; | 53 class SocketPerformanceWatcherFactory; |
| 54 class SOCKSClientSocketPool; | 54 class SOCKSClientSocketPool; |
| 55 class SSLClientSocketPool; | 55 class SSLClientSocketPool; |
| 56 class SSLConfigService; | 56 class SSLConfigService; |
| 57 class TransportClientSocketPool; | 57 class TransportClientSocketPool; |
| 58 class TransportSecurityState; | 58 class TransportSecurityState; |
| 59 class TrustedSpdyProxyProvider; |
| 59 | 60 |
| 60 // This class holds session objects used by HttpNetworkTransaction objects. | 61 // This class holds session objects used by HttpNetworkTransaction objects. |
| 61 class NET_EXPORT HttpNetworkSession | 62 class NET_EXPORT HttpNetworkSession |
| 62 : NON_EXPORTED_BASE(public base::NonThreadSafe) { | 63 : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 63 public: | 64 public: |
| 64 struct NET_EXPORT Params { | 65 struct NET_EXPORT Params { |
| 65 Params(); | 66 Params(); |
| 66 ~Params(); | 67 ~Params(); |
| 67 | 68 |
| 68 ClientSocketFactory* client_socket_factory; | 69 ClientSocketFactory* client_socket_factory; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 94 // SSL handshake as well as by HTTP Alternate-Protocol. | 95 // SSL handshake as well as by HTTP Alternate-Protocol. |
| 95 // TODO(mmenke): This is currently empty by default, and alternate | 96 // TODO(mmenke): This is currently empty by default, and alternate |
| 96 // protocols are disabled. We should use some reasonable | 97 // protocols are disabled. We should use some reasonable |
| 97 // defaults. | 98 // defaults. |
| 98 NextProtoVector next_protos; | 99 NextProtoVector next_protos; |
| 99 size_t spdy_session_max_recv_window_size; | 100 size_t spdy_session_max_recv_window_size; |
| 100 size_t spdy_stream_max_recv_window_size; | 101 size_t spdy_stream_max_recv_window_size; |
| 101 size_t spdy_initial_max_concurrent_streams; | 102 size_t spdy_initial_max_concurrent_streams; |
| 102 // Source of time for SPDY connections. | 103 // Source of time for SPDY connections. |
| 103 SpdySessionPool::TimeFunc time_func; | 104 SpdySessionPool::TimeFunc time_func; |
| 104 // This SPDY proxy is allowed to push resources from origins that are | 105 // |trusted_spdy_proxy_provider| provides a trusted SPDY proxy which is |
| 105 // different from those of their associated streams. | 106 // allowed to push HTTP resources from origins that are different from those |
| 106 std::string trusted_spdy_proxy; | 107 // of their associated streams in non-incognito sessions. |
| 108 base::WeakPtr<TrustedSpdyProxyProvider> trusted_spdy_proxy_provider; |
| 107 // URLs to exclude from forced SPDY. | 109 // URLs to exclude from forced SPDY. |
| 108 std::set<HostPortPair> forced_spdy_exclusions; | 110 std::set<HostPortPair> forced_spdy_exclusions; |
| 109 // Process Alt-Svc headers. | 111 // Process Alt-Svc headers. |
| 110 bool use_alternative_services; | 112 bool use_alternative_services; |
| 111 // Only honor alternative service entries which have a higher probability | 113 // Only honor alternative service entries which have a higher probability |
| 112 // than this value. | 114 // than this value. |
| 113 double alternative_service_probability_threshold; | 115 double alternative_service_probability_threshold; |
| 114 | 116 |
| 115 // Enables NPN support. Note that ALPN is always enabled. | 117 // Enables NPN support. Note that ALPN is always enabled. |
| 116 bool enable_npn; | 118 bool enable_npn; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 295 |
| 294 NextProtoVector next_protos_; | 296 NextProtoVector next_protos_; |
| 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 297 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 296 | 298 |
| 297 Params params_; | 299 Params params_; |
| 298 }; | 300 }; |
| 299 | 301 |
| 300 } // namespace net | 302 } // namespace net |
| 301 | 303 |
| 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 304 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |