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

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

Issue 871753006: Add AlternateProtocolInfo to HttpStreamFactoryImpl::Job. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #5. Created 5 years, 10 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
« no previous file with comments | « net/http/http_server_properties.h ('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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698