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 string16& username, | 91 virtual int RestartTunnelWithProxyAuth(const AuthCredentials& credentials); |
92 const string16& password); | |
93 virtual LoadState GetLoadState() const; | 92 virtual LoadState GetLoadState() const; |
94 virtual bool was_npn_negotiated() const; | 93 virtual bool was_npn_negotiated() const; |
95 virtual bool using_spdy() const; | 94 virtual bool using_spdy() const; |
96 | 95 |
97 private: | 96 private: |
98 // Used to orphan all jobs in |jobs_| other than |job| which becomes "bound" | 97 // Used to orphan all jobs in |jobs_| other than |job| which becomes "bound" |
99 // to the request. | 98 // to the request. |
100 void OrphanJobsExcept(Job* job); | 99 void OrphanJobsExcept(Job* job); |
101 | 100 |
102 // Used to orphan all jobs in |jobs_|. | 101 // Used to orphan all jobs in |jobs_|. |
(...skipping 13 matching lines...) Expand all Loading... |
116 bool completed_; | 115 bool completed_; |
117 bool was_npn_negotiated_; | 116 bool was_npn_negotiated_; |
118 bool using_spdy_; | 117 bool using_spdy_; |
119 | 118 |
120 DISALLOW_COPY_AND_ASSIGN(Request); | 119 DISALLOW_COPY_AND_ASSIGN(Request); |
121 }; | 120 }; |
122 | 121 |
123 } // namespace net | 122 } // namespace net |
124 | 123 |
125 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 124 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |