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

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

Issue 1540463003: Change the interface of GetAlternativeServicesFor, always return the best Alt-Svc entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change hanging_data_ to vector Created 4 years, 11 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
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/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 // created for the StreamFactory. 39 // created for the StreamFactory.
40 class HttpStreamFactoryImpl::Job { 40 class HttpStreamFactoryImpl::Job {
41 public: 41 public:
42 // Constructor for non-alternative Job. 42 // Constructor for non-alternative Job.
43 Job(HttpStreamFactoryImpl* stream_factory, 43 Job(HttpStreamFactoryImpl* stream_factory,
44 HttpNetworkSession* session, 44 HttpNetworkSession* session,
45 const HttpRequestInfo& request_info, 45 const HttpRequestInfo& request_info,
46 RequestPriority priority, 46 RequestPriority priority,
47 const SSLConfig& server_ssl_config, 47 const SSLConfig& server_ssl_config,
48 const SSLConfig& proxy_ssl_config, 48 const SSLConfig& proxy_ssl_config,
49 HostPortPair server,
50 GURL origin_url,
49 NetLog* net_log); 51 NetLog* net_log);
50 // Constructor for alternative Job. 52 // Constructor for alternative Job.
51 Job(HttpStreamFactoryImpl* stream_factory, 53 Job(HttpStreamFactoryImpl* stream_factory,
52 HttpNetworkSession* session, 54 HttpNetworkSession* session,
53 const HttpRequestInfo& request_info, 55 const HttpRequestInfo& request_info,
54 RequestPriority priority, 56 RequestPriority priority,
55 const SSLConfig& server_ssl_config, 57 const SSLConfig& server_ssl_config,
56 const SSLConfig& proxy_ssl_config, 58 const SSLConfig& proxy_ssl_config,
59 HostPortPair server,
60 GURL origin_url,
57 AlternativeService alternative_service, 61 AlternativeService alternative_service,
58 NetLog* net_log); 62 NetLog* net_log);
59 ~Job(); 63 ~Job();
60 64
61 // Start initiates the process of creating a new HttpStream. |request| will be 65 // Start initiates the process of creating a new HttpStream. |request| will be
62 // notified upon completion if the Job has not been Orphan()'d. 66 // notified upon completion if the Job has not been Orphan()'d.
63 void Start(Request* request); 67 void Start(Request* request);
64 68
65 // Preconnect will attempt to request |num_streams| sockets from the 69 // Preconnect will attempt to request |num_streams| sockets from the
66 // appropriate ClientSocketPool. 70 // appropriate ClientSocketPool.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 bool for_bidirectional_; 411 bool for_bidirectional_;
408 412
409 base::WeakPtrFactory<Job> ptr_factory_; 413 base::WeakPtrFactory<Job> ptr_factory_;
410 414
411 DISALLOW_COPY_AND_ASSIGN(Job); 415 DISALLOW_COPY_AND_ASSIGN(Job);
412 }; 416 };
413 417
414 } // namespace net 418 } // namespace net
415 419
416 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 420 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698