Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_STREAM_FACTORY_H_ | 5 #ifndef NET_HTTP_STREAM_FACTORY_H_ |
| 6 #define NET_HTTP_STREAM_FACTORY_H_ | 6 #define NET_HTTP_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 // to |auth_controller| if it is needed beyond the lifetime of this | 62 // to |auth_controller| if it is needed beyond the lifetime of this |
| 63 // callback. | 63 // callback. |
| 64 virtual void OnNeedsProxyAuth(const HttpResponseInfo& proxy_response, | 64 virtual void OnNeedsProxyAuth(const HttpResponseInfo& proxy_response, |
| 65 HttpAuthController* auth_controller) = 0; | 65 HttpAuthController* auth_controller) = 0; |
| 66 | 66 |
| 67 // This is the failure for SSL Client Auth | 67 // This is the failure for SSL Client Auth |
| 68 // Ownership of |cert_info| is retained by the StreamRequest. The delegate | 68 // Ownership of |cert_info| is retained by the StreamRequest. The delegate |
| 69 // may take a reference if it needs the cert_info beyond the lifetime of | 69 // may take a reference if it needs the cert_info beyond the lifetime of |
| 70 // this callback. | 70 // this callback. |
| 71 virtual void OnNeedsClientAuth(SSLCertRequestInfo* cert_info) = 0; | 71 virtual void OnNeedsClientAuth(SSLCertRequestInfo* cert_info) = 0; |
| 72 | |
| 73 // This is the failure of the CONNECT request through an HTTPS proxy. | |
| 74 // Headers can be read from |response_info|, while the body can be read | |
| 75 // from |stream|. | |
| 76 // Ownership of |response_info| is retained by the StreamRequest. | |
|
vandebo (ex-Chrome)
2010/12/04 00:30:37
I don't think you need to note the ownership of a
Ryan Hamilton
2010/12/09 21:19:35
Oh, duh!
| |
| 77 // Ownership of |stream| is transferred to the delegate. | |
| 78 virtual void OnHttpsProxyTunnelConnectionResponse( | |
|
vandebo (ex-Chrome)
2010/12/04 00:30:37
Connection -> Connect ?
| |
| 79 const HttpResponseInfo& response_info, HttpStream* stream) = 0; | |
| 72 }; | 80 }; |
| 73 | 81 |
| 74 virtual ~StreamRequest() {} | 82 virtual ~StreamRequest() {} |
| 75 | 83 |
| 76 // When a HttpStream creation process requires a SSL Certificate, | 84 // When a HttpStream creation process requires a SSL Certificate, |
| 77 // the delegate OnNeedsClientAuth handler will have been called. | 85 // the delegate OnNeedsClientAuth handler will have been called. |
| 78 // It now becomes the delegate's responsibility to collect the certificate | 86 // It now becomes the delegate's responsibility to collect the certificate |
| 79 // (probably from the user), and then call this method to resume | 87 // (probably from the user), and then call this method to resume |
| 80 // the HttpStream creation process. | 88 // the HttpStream creation process. |
| 81 // Ownership of |client_cert| remains with the StreamRequest. The | 89 // Ownership of |client_cert| remains with the StreamRequest. The |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 const std::string& alternate_protocol_str, | 148 const std::string& alternate_protocol_str, |
| 141 const HostPortPair& http_host_port_pair) = 0; | 149 const HostPortPair& http_host_port_pair) = 0; |
| 142 | 150 |
| 143 virtual GURL ApplyHostMappingRules(const GURL& url, | 151 virtual GURL ApplyHostMappingRules(const GURL& url, |
| 144 HostPortPair* endpoint) = 0; | 152 HostPortPair* endpoint) = 0; |
| 145 }; | 153 }; |
| 146 | 154 |
| 147 } // namespace net | 155 } // namespace net |
| 148 | 156 |
| 149 #endif // NET_HTTP_STREAM_FACTORY_H_ | 157 #endif // NET_HTTP_STREAM_FACTORY_H_ |
| OLD | NEW |