Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: net/http/http_stream_factory_impl_job.h

Issue 377063002: Revert of Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_stream_factory_impl.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 AlternateProtocolInfo alternate); 63 PortAlternateProtocolPair 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
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_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698