| 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_IMPL_REQUEST_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
| 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 SSLCertRequestInfo* cert_info); | 81 SSLCertRequestInfo* cert_info); |
| 82 void OnHttpsProxyTunnelResponse( | 82 void OnHttpsProxyTunnelResponse( |
| 83 Job *job, | 83 Job *job, |
| 84 const HttpResponseInfo& response_info, | 84 const HttpResponseInfo& response_info, |
| 85 const SSLConfig& used_ssl_config, | 85 const SSLConfig& used_ssl_config, |
| 86 const ProxyInfo& used_proxy_info, | 86 const ProxyInfo& used_proxy_info, |
| 87 HttpStream* stream); | 87 HttpStream* stream); |
| 88 | 88 |
| 89 // HttpStreamRequest methods. | 89 // HttpStreamRequest methods. |
| 90 | 90 |
| 91 virtual int RestartTunnelWithProxyAuth(const AuthCredentials& credentials); | 91 virtual int RestartTunnelWithProxyAuth( |
| 92 virtual LoadState GetLoadState() const; | 92 const AuthCredentials& credentials) OVERRIDE; |
| 93 virtual bool was_npn_negotiated() const; | 93 virtual LoadState GetLoadState() const OVERRIDE; |
| 94 virtual bool using_spdy() const; | 94 virtual bool was_npn_negotiated() const OVERRIDE; |
| 95 virtual bool using_spdy() const OVERRIDE; |
| 95 | 96 |
| 96 private: | 97 private: |
| 97 // Used to orphan all jobs in |jobs_| other than |job| which becomes "bound" | 98 // Used to orphan all jobs in |jobs_| other than |job| which becomes "bound" |
| 98 // to the request. | 99 // to the request. |
| 99 void OrphanJobsExcept(Job* job); | 100 void OrphanJobsExcept(Job* job); |
| 100 | 101 |
| 101 // Used to orphan all jobs in |jobs_|. | 102 // Used to orphan all jobs in |jobs_|. |
| 102 void OrphanJobs(); | 103 void OrphanJobs(); |
| 103 | 104 |
| 104 const GURL url_; | 105 const GURL url_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 115 bool completed_; | 116 bool completed_; |
| 116 bool was_npn_negotiated_; | 117 bool was_npn_negotiated_; |
| 117 bool using_spdy_; | 118 bool using_spdy_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(Request); | 120 DISALLOW_COPY_AND_ASSIGN(Request); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace net | 123 } // namespace net |
| 123 | 124 |
| 124 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 125 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |