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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 months 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
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_STREAM_FACTORY_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 class GURL; 25 class GURL;
26 26
27 namespace base { 27 namespace base {
28 class Value; 28 class Value;
29 } 29 }
30 30
31 namespace net { 31 namespace net {
32 32
33 class AuthCredentials; 33 class AuthCredentials;
34 class BoundNetLog; 34 class NetLogWithSource;
35 class BidirectionalStreamImpl; 35 class BidirectionalStreamImpl;
36 class HostMappingRules; 36 class HostMappingRules;
37 class HostPortPair; 37 class HostPortPair;
38 class HttpAuthController; 38 class HttpAuthController;
39 class HttpNetworkSession; 39 class HttpNetworkSession;
40 class HttpResponseHeaders; 40 class HttpResponseHeaders;
41 class HttpResponseInfo; 41 class HttpResponseInfo;
42 class HttpServerProperties; 42 class HttpServerProperties;
43 class HttpStream; 43 class HttpStream;
44 class ProxyInfo; 44 class ProxyInfo;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Virtual interface methods. 205 // Virtual interface methods.
206 206
207 // Request a stream. 207 // Request a stream.
208 // Will call delegate->OnStreamReady on successful completion. 208 // Will call delegate->OnStreamReady on successful completion.
209 virtual HttpStreamRequest* RequestStream( 209 virtual HttpStreamRequest* RequestStream(
210 const HttpRequestInfo& info, 210 const HttpRequestInfo& info,
211 RequestPriority priority, 211 RequestPriority priority,
212 const SSLConfig& server_ssl_config, 212 const SSLConfig& server_ssl_config,
213 const SSLConfig& proxy_ssl_config, 213 const SSLConfig& proxy_ssl_config,
214 HttpStreamRequest::Delegate* delegate, 214 HttpStreamRequest::Delegate* delegate,
215 const BoundNetLog& net_log) = 0; 215 const NetLogWithSource& net_log) = 0;
216 216
217 // Request a WebSocket handshake stream. 217 // Request a WebSocket handshake stream.
218 // Will call delegate->OnWebSocketHandshakeStreamReady on successful 218 // Will call delegate->OnWebSocketHandshakeStreamReady on successful
219 // completion. 219 // completion.
220 virtual HttpStreamRequest* RequestWebSocketHandshakeStream( 220 virtual HttpStreamRequest* RequestWebSocketHandshakeStream(
221 const HttpRequestInfo& info, 221 const HttpRequestInfo& info,
222 RequestPriority priority, 222 RequestPriority priority,
223 const SSLConfig& server_ssl_config, 223 const SSLConfig& server_ssl_config,
224 const SSLConfig& proxy_ssl_config, 224 const SSLConfig& proxy_ssl_config,
225 HttpStreamRequest::Delegate* delegate, 225 HttpStreamRequest::Delegate* delegate,
226 WebSocketHandshakeStreamBase::CreateHelper* create_helper, 226 WebSocketHandshakeStreamBase::CreateHelper* create_helper,
227 const BoundNetLog& net_log) = 0; 227 const NetLogWithSource& net_log) = 0;
228 228
229 // Request a BidirectionalStreamImpl. 229 // Request a BidirectionalStreamImpl.
230 // Will call delegate->OnBidirectionalStreamImplReady on successful 230 // Will call delegate->OnBidirectionalStreamImplReady on successful
231 // completion. 231 // completion.
232 virtual HttpStreamRequest* RequestBidirectionalStreamImpl( 232 virtual HttpStreamRequest* RequestBidirectionalStreamImpl(
233 const HttpRequestInfo& info, 233 const HttpRequestInfo& info,
234 RequestPriority priority, 234 RequestPriority priority,
235 const SSLConfig& server_ssl_config, 235 const SSLConfig& server_ssl_config,
236 const SSLConfig& proxy_ssl_config, 236 const SSLConfig& proxy_ssl_config,
237 HttpStreamRequest::Delegate* delegate, 237 HttpStreamRequest::Delegate* delegate,
238 const BoundNetLog& net_log) = 0; 238 const NetLogWithSource& net_log) = 0;
239 239
240 // Requests that enough connections for |num_streams| be opened. 240 // Requests that enough connections for |num_streams| be opened.
241 virtual void PreconnectStreams(int num_streams, 241 virtual void PreconnectStreams(int num_streams,
242 const HttpRequestInfo& info) = 0; 242 const HttpRequestInfo& info) = 0;
243 243
244 virtual const HostMappingRules* GetHostMappingRules() const = 0; 244 virtual const HostMappingRules* GetHostMappingRules() const = 0;
245 245
246 protected: 246 protected:
247 HttpStreamFactory(); 247 HttpStreamFactory();
248 248
249 private: 249 private:
250 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server); 250 url::SchemeHostPort RewriteHost(const url::SchemeHostPort& server);
251 251
252 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 252 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
253 }; 253 };
254 254
255 } // namespace net 255 } // namespace net
256 256
257 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 257 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698