| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 HostPortPair origin_; | 268 HostPortPair origin_; |
| 269 | 269 |
| 270 // The origin url we're trying to reach. This url may be different from the | 270 // The origin url we're trying to reach. This url may be different from the |
| 271 // original request when host mapping rules are set-up. | 271 // original request when host mapping rules are set-up. |
| 272 GURL origin_url_; | 272 GURL origin_url_; |
| 273 | 273 |
| 274 // If this is a Job for an "Alternate-Protocol", then this will be non-NULL | 274 // If this is a Job for an "Alternate-Protocol", then this will be non-NULL |
| 275 // and will specify the original URL. | 275 // and will specify the original URL. |
| 276 scoped_ptr<GURL> original_url_; | 276 scoped_ptr<GURL> original_url_; |
| 277 | 277 |
| 278 // AlternateProtocol for this job if this is an alternate job. |
| 279 AlternateProtocolInfo alternate_protocol_; |
| 280 |
| 281 // AlternateProtocol for the other job if this is not an alternate job. |
| 282 AlternateProtocolInfo other_job_alternate_protocol_; |
| 283 |
| 278 // This is the Job we're dependent on. It will notify us if/when it's OK to | 284 // This is the Job we're dependent on. It will notify us if/when it's OK to |
| 279 // proceed. | 285 // proceed. |
| 280 Job* blocking_job_; | 286 Job* blocking_job_; |
| 281 | 287 |
| 282 // |waiting_job_| is a Job waiting to see if |this| can reuse a connection. | 288 // |waiting_job_| is a Job waiting to see if |this| can reuse a connection. |
| 283 // If |this| is unable to do so, we'll notify |waiting_job_| that it's ok to | 289 // If |this| is unable to do so, we'll notify |waiting_job_| that it's ok to |
| 284 // proceed and then race the two Jobs. | 290 // proceed and then race the two Jobs. |
| 285 Job* waiting_job_; | 291 Job* waiting_job_; |
| 286 | 292 |
| 287 // True if handling a HTTPS request, or using SPDY with SSL | 293 // True if handling a HTTPS request, or using SPDY with SSL |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 JobStatus other_job_status_; | 342 JobStatus other_job_status_; |
| 337 | 343 |
| 338 base::WeakPtrFactory<Job> ptr_factory_; | 344 base::WeakPtrFactory<Job> ptr_factory_; |
| 339 | 345 |
| 340 DISALLOW_COPY_AND_ASSIGN(Job); | 346 DISALLOW_COPY_AND_ASSIGN(Job); |
| 341 }; | 347 }; |
| 342 | 348 |
| 343 } // namespace net | 349 } // namespace net |
| 344 | 350 |
| 345 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 351 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |