| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 15 #include "net/base/load_states.h" | 15 #include "net/base/load_states.h" |
| 16 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 class AuthCredentials; |
| 22 class BoundNetLog; | 23 class BoundNetLog; |
| 23 class HostMappingRules; | 24 class HostMappingRules; |
| 24 class HostPortPair; | 25 class HostPortPair; |
| 25 class HttpAuthController; | 26 class HttpAuthController; |
| 26 class HttpNetworkSession; | 27 class HttpNetworkSession; |
| 27 class HttpPipelinedHost; | 28 class HttpPipelinedHost; |
| 28 class HttpResponseInfo; | 29 class HttpResponseInfo; |
| 29 class HttpServerProperties; | 30 class HttpServerProperties; |
| 30 class HttpStream; | 31 class HttpStream; |
| 31 class ProxyInfo; | 32 class ProxyInfo; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 HttpStream* stream) = 0; | 126 HttpStream* stream) = 0; |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 virtual ~HttpStreamRequest() {} | 129 virtual ~HttpStreamRequest() {} |
| 129 | 130 |
| 130 // When a HttpStream creation process is stalled due to necessity | 131 // When a HttpStream creation process is stalled due to necessity |
| 131 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth | 132 // of Proxy authentication credentials, the delegate OnNeedsProxyAuth |
| 132 // will have been called. It now becomes the delegate's responsibility | 133 // will have been called. It now becomes the delegate's responsibility |
| 133 // to collect the necessary credentials, and then call this method to | 134 // to collect the necessary credentials, and then call this method to |
| 134 // resume the HttpStream creation process. | 135 // resume the HttpStream creation process. |
| 135 virtual int RestartTunnelWithProxyAuth(const string16& username, | 136 virtual int RestartTunnelWithProxyAuth( |
| 136 const string16& password) = 0; | 137 const AuthCredentials& credentials) = 0; |
| 137 | 138 |
| 138 // Returns the LoadState for the request. | 139 // Returns the LoadState for the request. |
| 139 virtual LoadState GetLoadState() const = 0; | 140 virtual LoadState GetLoadState() const = 0; |
| 140 | 141 |
| 141 // Returns true if TLS/NPN was negotiated for this stream. | 142 // Returns true if TLS/NPN was negotiated for this stream. |
| 142 virtual bool was_npn_negotiated() const = 0; | 143 virtual bool was_npn_negotiated() const = 0; |
| 143 | 144 |
| 144 // Returns true if this stream is being fetched over SPDY. | 145 // Returns true if this stream is being fetched over SPDY. |
| 145 virtual bool using_spdy() const = 0; | 146 virtual bool using_spdy() const = 0; |
| 146 }; | 147 }; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 static std::list<HostPortPair>* forced_spdy_exclusions_; | 261 static std::list<HostPortPair>* forced_spdy_exclusions_; |
| 261 static bool ignore_certificate_errors_; | 262 static bool ignore_certificate_errors_; |
| 262 static bool http_pipelining_enabled_; | 263 static bool http_pipelining_enabled_; |
| 263 | 264 |
| 264 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); | 265 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactory); |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 } // namespace net | 268 } // namespace net |
| 268 | 269 |
| 269 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ | 270 #endif // NET_HTTP_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |