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 // If this is a Job for an "Alternate-Protocol", then this will specify the | |
279 // alternate protocol. | |
280 AlternateProtocolInfo alternate_protocol_; | |
Ryan Hamilton
2014/11/03 19:00:31
I think this should probably be initialized in the
Bence
2014/11/03 22:32:26
I specifically added a default constructor to Alte
Ryan Hamilton
2014/11/04 18:56:22
Ah, good point. For some reason I was thinking it
| |
281 | |
278 // This is the Job we're dependent on. It will notify us if/when it's OK to | 282 // This is the Job we're dependent on. It will notify us if/when it's OK to |
279 // proceed. | 283 // proceed. |
280 Job* blocking_job_; | 284 Job* blocking_job_; |
281 | 285 |
282 // |waiting_job_| is a Job waiting to see if |this| can reuse a connection. | 286 // |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 | 287 // 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. | 288 // proceed and then race the two Jobs. |
285 Job* waiting_job_; | 289 Job* waiting_job_; |
286 | 290 |
287 // True if handling a HTTPS request, or using SPDY with SSL | 291 // 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_; | 340 JobStatus other_job_status_; |
337 | 341 |
338 base::WeakPtrFactory<Job> ptr_factory_; | 342 base::WeakPtrFactory<Job> ptr_factory_; |
339 | 343 |
340 DISALLOW_COPY_AND_ASSIGN(Job); | 344 DISALLOW_COPY_AND_ASSIGN(Job); |
341 }; | 345 }; |
342 | 346 |
343 } // namespace net | 347 } // namespace net |
344 | 348 |
345 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 349 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
OLD | NEW |