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_JOB_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 scoped_ptr<ClientSocketHandle> connection_; | 210 scoped_ptr<ClientSocketHandle> connection_; |
211 HttpNetworkSession* const session_; | 211 HttpNetworkSession* const session_; |
212 HttpStreamFactoryImpl* const stream_factory_; | 212 HttpStreamFactoryImpl* const stream_factory_; |
213 State next_state_; | 213 State next_state_; |
214 ProxyService::PacRequest* pac_request_; | 214 ProxyService::PacRequest* pac_request_; |
215 SSLInfo ssl_info_; | 215 SSLInfo ssl_info_; |
216 | 216 |
217 // The origin server we're trying to reach. | 217 // The origin server we're trying to reach. |
218 HostPortPair origin_; | 218 HostPortPair origin_; |
219 | 219 |
| 220 // The origin url we're trying to reach. This url may be different from the |
| 221 // original request when host mapping rules are set-up. |
| 222 GURL origin_url_; |
| 223 |
220 // If this is a Job for an "Alternate-Protocol", then this will be non-NULL | 224 // If this is a Job for an "Alternate-Protocol", then this will be non-NULL |
221 // and will specify the original URL. | 225 // and will specify the original URL. |
222 scoped_ptr<GURL> original_url_; | 226 scoped_ptr<GURL> original_url_; |
223 | 227 |
224 // This is the Job we're dependent on. It will notify us if/when it's OK to | 228 // This is the Job we're dependent on. It will notify us if/when it's OK to |
225 // proceed. | 229 // proceed. |
226 Job* blocking_job_; | 230 Job* blocking_job_; |
227 | 231 |
228 // |dependent_job_| is dependent on |this|. Notify it when it's ok to proceed. | 232 // |dependent_job_| is dependent on |this|. Notify it when it's ok to proceed. |
229 Job* dependent_job_; | 233 Job* dependent_job_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 bool spdy_session_direct_; | 270 bool spdy_session_direct_; |
267 | 271 |
268 ScopedRunnableMethodFactory<Job> method_factory_; | 272 ScopedRunnableMethodFactory<Job> method_factory_; |
269 | 273 |
270 DISALLOW_COPY_AND_ASSIGN(Job); | 274 DISALLOW_COPY_AND_ASSIGN(Job); |
271 }; | 275 }; |
272 | 276 |
273 } // namespace net | 277 } // namespace net |
274 | 278 |
275 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 279 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
OLD | NEW |