| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 int Preconnect(int num_streams); | 53 int Preconnect(int num_streams); |
| 54 | 54 |
| 55 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials); | 55 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials); |
| 56 LoadState GetLoadState() const; | 56 LoadState GetLoadState() const; |
| 57 | 57 |
| 58 // Marks this Job as the "alternate" job, from Alternate-Protocol. Tracks the | 58 // Marks this Job as the "alternate" job, from Alternate-Protocol. Tracks the |
| 59 // original url so we can mark the Alternate-Protocol as broken if | 59 // original url so we can mark the Alternate-Protocol as broken if |
| 60 // we fail to connect. |alternate| specifies the alternate protocol to use | 60 // we fail to connect. |alternate| specifies the alternate protocol to use |
| 61 // and alternate port to connect to. | 61 // and alternate port to connect to. |
| 62 void MarkAsAlternate(const GURL& original_url, | 62 void MarkAsAlternate(const GURL& original_url, |
| 63 PortAlternateProtocolPair alternate); | 63 AlternateProtocolInfo alternate); |
| 64 | 64 |
| 65 // Tells |this| to wait for |job| to resume it. | 65 // Tells |this| to wait for |job| to resume it. |
| 66 void WaitFor(Job* job); | 66 void WaitFor(Job* job); |
| 67 | 67 |
| 68 // Tells |this| that |job| has determined it still needs to continue | 68 // Tells |this| that |job| has determined it still needs to continue |
| 69 // connecting, so allow |this| to continue. If this is not called, then | 69 // connecting, so allow |this| to continue. If this is not called, then |
| 70 // |request_| is expected to cancel |this| by deleting it. | 70 // |request_| is expected to cancel |this| by deleting it. |
| 71 void Resume(Job* job); | 71 void Resume(Job* job); |
| 72 | 72 |
| 73 // Used to detach the Job from |request|. | 73 // Used to detach the Job from |request|. |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 JobStatus other_job_status_; | 332 JobStatus other_job_status_; |
| 333 | 333 |
| 334 base::WeakPtrFactory<Job> ptr_factory_; | 334 base::WeakPtrFactory<Job> ptr_factory_; |
| 335 | 335 |
| 336 DISALLOW_COPY_AND_ASSIGN(Job); | 336 DISALLOW_COPY_AND_ASSIGN(Job); |
| 337 }; | 337 }; |
| 338 | 338 |
| 339 } // namespace net | 339 } // namespace net |
| 340 | 340 |
| 341 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ | 341 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ |
| OLD | NEW |