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_STREAM_FACTORY_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_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 <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
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 "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 #include "net/base/privacy_mode.h" | 19 #include "net/base/privacy_mode.h" |
20 #include "net/base/request_priority.h" | 20 #include "net/base/request_priority.h" |
21 #include "net/http/http_stream_factory.h" | 21 #include "net/http/http_stream_factory.h" |
| 22 #include "net/log/net_log_source.h" |
22 #include "net/proxy/proxy_server.h" | 23 #include "net/proxy/proxy_server.h" |
23 #include "net/socket/ssl_client_socket.h" | 24 #include "net/socket/ssl_client_socket.h" |
24 #include "net/spdy/spdy_session_key.h" | 25 #include "net/spdy/spdy_session_key.h" |
25 | 26 |
26 namespace net { | 27 namespace net { |
27 | 28 |
28 class HttpNetworkSession; | 29 class HttpNetworkSession; |
29 class ProxyInfo; | 30 class ProxyInfo; |
30 class SpdySession; | 31 class SpdySession; |
31 class NetLogWithSource; | 32 class NetLogWithSource; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 126 |
126 // Called when a SpdySession is ready. It will find appropriate Requests and | 127 // Called when a SpdySession is ready. It will find appropriate Requests and |
127 // fulfill them. |direct| indicates whether or not |spdy_session| uses a | 128 // fulfill them. |direct| indicates whether or not |spdy_session| uses a |
128 // proxy. | 129 // proxy. |
129 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, | 130 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, |
130 bool direct, | 131 bool direct, |
131 const SSLConfig& used_ssl_config, | 132 const SSLConfig& used_ssl_config, |
132 const ProxyInfo& used_proxy_info, | 133 const ProxyInfo& used_proxy_info, |
133 bool was_alpn_negotiated, | 134 bool was_alpn_negotiated, |
134 NextProto negotiated_protocol, | 135 NextProto negotiated_protocol, |
135 bool using_spdy); | 136 bool using_spdy, |
| 137 NetLogSource source_dependency); |
136 | 138 |
137 // Called when the Job detects that the endpoint indicated by the | 139 // Called when the Job detects that the endpoint indicated by the |
138 // Alternate-Protocol does not work. Lets the factory update | 140 // Alternate-Protocol does not work. Lets the factory update |
139 // HttpAlternateProtocols with the failure and resets the SPDY session key. | 141 // HttpAlternateProtocols with the failure and resets the SPDY session key. |
140 void OnBrokenAlternateProtocol(const Job*, const HostPortPair& origin); | 142 void OnBrokenAlternateProtocol(const Job*, const HostPortPair& origin); |
141 | 143 |
142 // Called when the Preconnect completes. Used for testing. | 144 // Called when the Preconnect completes. Used for testing. |
143 virtual void OnPreconnectsCompleteInternal() {} | 145 virtual void OnPreconnectsCompleteInternal() {} |
144 | 146 |
145 // Called when the JobController finishes service. Delete the JobController | 147 // Called when the JobController finishes service. Delete the JobController |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 SpdySessionRequestMap spdy_session_request_map_; | 187 SpdySessionRequestMap spdy_session_request_map_; |
186 | 188 |
187 const bool for_websockets_; | 189 const bool for_websockets_; |
188 | 190 |
189 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 191 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
190 }; | 192 }; |
191 | 193 |
192 } // namespace net | 194 } // namespace net |
193 | 195 |
194 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 196 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |