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

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

Issue 699123002: Remove HttpStreamBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 | « net/http/http_stream_base.h ('k') | net/http/http_stream_factory_impl_request.h » ('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_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 19 matching lines...) Expand all
30 namespace net { 30 namespace net {
31 31
32 class AuthCredentials; 32 class AuthCredentials;
33 class BoundNetLog; 33 class BoundNetLog;
34 class HostMappingRules; 34 class HostMappingRules;
35 class HostPortPair; 35 class HostPortPair;
36 class HttpAuthController; 36 class HttpAuthController;
37 class HttpNetworkSession; 37 class HttpNetworkSession;
38 class HttpResponseInfo; 38 class HttpResponseInfo;
39 class HttpServerProperties; 39 class HttpServerProperties;
40 class HttpStreamBase; 40 class HttpStream;
41 class ProxyInfo; 41 class ProxyInfo;
42 class SSLCertRequestInfo; 42 class SSLCertRequestInfo;
43 class SSLInfo; 43 class SSLInfo;
44 struct HttpRequestInfo; 44 struct HttpRequestInfo;
45 struct SSLConfig; 45 struct SSLConfig;
46 46
47 // The HttpStreamRequest is the client's handle to the worker object which 47 // The HttpStreamRequest is the client's handle to the worker object which
48 // handles the creation of an HttpStream. While the HttpStream is being 48 // handles the creation of an HttpStream. While the HttpStream is being
49 // created, this object is the creator's handle for interacting with the 49 // created, this object is the creator's handle for interacting with the
50 // HttpStream creation process. The request is cancelled by deleting it, after 50 // HttpStream creation process. The request is cancelled by deleting it, after
(...skipping 10 matching lines...) Expand all
61 // This is the success case for RequestStream. 61 // This is the success case for RequestStream.
62 // |stream| is now owned by the delegate. 62 // |stream| is now owned by the delegate.
63 // |used_ssl_config| indicates the actual SSL configuration used for this 63 // |used_ssl_config| indicates the actual SSL configuration used for this
64 // stream, since the HttpStreamRequest may have modified the configuration 64 // stream, since the HttpStreamRequest may have modified the configuration
65 // during stream processing. 65 // during stream processing.
66 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, 66 // |used_proxy_info| indicates the actual ProxyInfo used for this stream,
67 // since the HttpStreamRequest performs the proxy resolution. 67 // since the HttpStreamRequest performs the proxy resolution.
68 virtual void OnStreamReady( 68 virtual void OnStreamReady(
69 const SSLConfig& used_ssl_config, 69 const SSLConfig& used_ssl_config,
70 const ProxyInfo& used_proxy_info, 70 const ProxyInfo& used_proxy_info,
71 HttpStreamBase* stream) = 0; 71 HttpStream* stream) = 0;
72 72
73 // This is the success case for RequestWebSocketHandshakeStream. 73 // This is the success case for RequestWebSocketHandshakeStream.
74 // |stream| is now owned by the delegate. 74 // |stream| is now owned by the delegate.
75 // |used_ssl_config| indicates the actual SSL configuration used for this 75 // |used_ssl_config| indicates the actual SSL configuration used for this
76 // stream, since the HttpStreamRequest may have modified the configuration 76 // stream, since the HttpStreamRequest may have modified the configuration
77 // during stream processing. 77 // during stream processing.
78 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, 78 // |used_proxy_info| indicates the actual ProxyInfo used for this stream,
79 // since the HttpStreamRequest performs the proxy resolution. 79 // since the HttpStreamRequest performs the proxy resolution.
80 virtual void OnWebSocketHandshakeStreamReady( 80 virtual void OnWebSocketHandshakeStreamReady(
81 const SSLConfig& used_ssl_config, 81 const SSLConfig& used_ssl_config,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // during stream processing. 136 // during stream processing.
137 // 137 //
138 // |used_proxy_info| indicates the actual ProxyInfo used for this stream, 138 // |used_proxy_info| indicates the actual ProxyInfo used for this stream,
139 // since the HttpStreamRequest performs the proxy resolution. 139 // since the HttpStreamRequest performs the proxy resolution.
140 // 140 //
141 // Ownership of |stream| is transferred to the delegate. 141 // Ownership of |stream| is transferred to the delegate.
142 virtual void OnHttpsProxyTunnelResponse( 142 virtual void OnHttpsProxyTunnelResponse(
143 const HttpResponseInfo& response_info, 143 const HttpResponseInfo& response_info,
144 const SSLConfig& used_ssl_config, 144 const SSLConfig& used_ssl_config,
145 const ProxyInfo& used_proxy_info, 145 const ProxyInfo& used_proxy_info,
146 HttpStreamBase* stream) = 0; 146 HttpStream* stream) = 0;
147 }; 147 };
148 148
149 virtual ~HttpStreamRequest() {} 149 virtual ~HttpStreamRequest() {}
150 150
151 // When a HttpStream creation process is stalled due to necessity 151 // When a HttpStream creation process is stalled due to necessity
152 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth 152 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth
153 // will have been called. It now becomes the delegate's responsibility 153 // will have been called. It now becomes the delegate's responsibility
154 // to collect the necessary credentials, and then call this method to 154 // to collect the necessary credentials, and then call this method to
155 // resume the HttpStream creation process. 155 // resume the HttpStream creation process.
156 virtual int RestartTunnelWithProxyAuth( 156 virtual int RestartTunnelWithProxyAuth(
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 private: 237 private:
238 static bool spdy_enabled_; 238 static bool spdy_enabled_;
239 239
240 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); 240 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory);
241 }; 241 };
242 242
243 } // namespace net 243 } // namespace net
244 244
245 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ 245 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_base.h ('k') | net/http/http_stream_factory_impl_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698