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

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

Issue 2619403002: TEMP DO NOT REVIEW
Patch Set: Created 3 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
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_CONTROLLER_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
7 7
8 #include "net/base/host_port_pair.h" 8 #include "net/base/host_port_pair.h"
9 #include "net/http/http_stream_factory_impl_job.h" 9 #include "net/http/http_stream_factory_impl_job.h"
10 #include "net/http/http_stream_factory_impl_request.h" 10 #include "net/http/http_stream_factory_impl_request.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 void MaybeSetWaitTimeForMainJob(const base::TimeDelta& delay) override; 165 void MaybeSetWaitTimeForMainJob(const base::TimeDelta& delay) override;
166 166
167 WebSocketHandshakeStreamBase::CreateHelper* 167 WebSocketHandshakeStreamBase::CreateHelper*
168 websocket_handshake_stream_create_helper() override; 168 websocket_handshake_stream_create_helper() override;
169 169
170 bool is_preconnect() const { return is_preconnect_; } 170 bool is_preconnect() const { return is_preconnect_; }
171 171
172 private: 172 private:
173 friend class JobControllerPeer; 173 friend class JobControllerPeer;
174 friend class HttpStreamFactoryImpl;
174 175
175 // Creates Job(s) for |request_|. Job(s) will be owned by |this|. 176 // Creates Job(s) for |request_|. Job(s) will be owned by |this|.
176 void CreateJobs(const HttpRequestInfo& request_info, 177 void CreateJobs(const HttpRequestInfo& request_info,
177 RequestPriority priority, 178 RequestPriority priority,
178 const SSLConfig& server_ssl_config, 179 const SSLConfig& server_ssl_config,
179 const SSLConfig& proxy_ssl_config, 180 const SSLConfig& proxy_ssl_config,
180 HttpStreamRequest::Delegate* delegate, 181 HttpStreamRequest::Delegate* delegate,
181 HttpStreamRequest::StreamType stream_type, 182 HttpStreamRequest::StreamType stream_type,
182 const NetLogWithSource& net_log); 183 const NetLogWithSource& net_log);
183 184
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // Waiting time for the main job before it is resumed. 296 // Waiting time for the main job before it is resumed.
296 base::TimeDelta main_job_wait_time_; 297 base::TimeDelta main_job_wait_time_;
297 298
298 // At the point where a Job is irrevocably tied to |request_|, we set this. 299 // At the point where a Job is irrevocably tied to |request_|, we set this.
299 // It will be nulled when the |request_| is finished. 300 // It will be nulled when the |request_| is finished.
300 Job* bound_job_; 301 Job* bound_job_;
301 302
302 // True if an alternative proxy server job can be started to fetch |request_|. 303 // True if an alternative proxy server job can be started to fetch |request_|.
303 bool can_start_alternative_proxy_job_; 304 bool can_start_alternative_proxy_job_;
304 305
306 bool is_quic_;
307 bool reusing_quic_;
308 bool is_spdy_;
305 base::WeakPtrFactory<JobController> ptr_factory_; 309 base::WeakPtrFactory<JobController> ptr_factory_;
306 }; 310 };
307 311
308 } // namespace net 312 } // namespace net
309 313
310 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 314 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698