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

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

Issue 2347163002: s/NPN/ALPN/ (Closed)
Patch Set: Re: #12. Created 4 years, 3 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) 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // Called after BindJob() to notify the unbound job that its result should be 191 // Called after BindJob() to notify the unbound job that its result should be
192 // ignored by JobController. The unbound job can be canceled or continue until 192 // ignored by JobController. The unbound job can be canceled or continue until
193 // completion. 193 // completion.
194 void OrphanUnboundJob(); 194 void OrphanUnboundJob();
195 195
196 // Called when a Job succeeds. 196 // Called when a Job succeeds.
197 void OnJobSucceeded(Job* job); 197 void OnJobSucceeded(Job* job);
198 198
199 // Marks completion of the |request_|. 199 // Marks completion of the |request_|.
200 void MarkRequestComplete(bool was_npn_negotiated, 200 void MarkRequestComplete(bool was_alpn_negotiated,
201 NextProto negotiated_protocol, 201 NextProto negotiated_protocol,
202 bool using_spdy); 202 bool using_spdy);
203 203
204 // Must be called when |alternative_job_| fails. 204 // Must be called when |alternative_job_| fails.
205 void OnAlternativeJobFailed(Job* job); 205 void OnAlternativeJobFailed(Job* job);
206 206
207 // Called to report to http_server_properties to mark alternative service 207 // Called to report to http_server_properties to mark alternative service
208 // broken. 208 // broken.
209 void ReportBrokenAlternativeService(); 209 void ReportBrokenAlternativeService();
210 210
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // True if an alternative proxy server job can be started to fetch |request_|. 287 // True if an alternative proxy server job can be started to fetch |request_|.
288 bool can_start_alternative_proxy_job_; 288 bool can_start_alternative_proxy_job_;
289 289
290 base::WeakPtrFactory<JobController> ptr_factory_; 290 base::WeakPtrFactory<JobController> ptr_factory_;
291 }; 291 };
292 292
293 } // namespace net 293 } // namespace net
294 294
295 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_CONTROLLER_H_ 295 #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') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698