diff options
Diffstat (limited to 'chromium/net/http/http_stream_factory_job_controller.h')
-rw-r--r-- | chromium/net/http/http_stream_factory_job_controller.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/chromium/net/http/http_stream_factory_job_controller.h b/chromium/net/http/http_stream_factory_job_controller.h index 2356e9bdce3..1b0d4f5c0de 100644 --- a/chromium/net/http/http_stream_factory_job_controller.h +++ b/chromium/net/http/http_stream_factory_job_controller.h @@ -1,4 +1,4 @@ -// Copyright (c) 2016 The Chromium Authors. All rights reserved. +// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -201,9 +201,7 @@ class HttpStreamFactory::JobController void ClearInappropriateJobs(); // Marks completion of the |request_|. - void MarkRequestComplete(bool was_alpn_negotiated, - NextProto negotiated_protocol, - bool using_spdy); + void MarkRequestComplete(Job* job); // Called when all Jobs complete. Reports alternative service brokenness to // HttpServerProperties if apply and resets net errors afterwards: @@ -258,11 +256,19 @@ class HttpStreamFactory::JobController // Records histogram metrics for the usage of alternative protocol. Must be // called when |job| has succeeded and the other job will be orphaned. - void ReportAlternateProtocolUsage(Job* job) const; + void ReportAlternateProtocolUsage( + AlternateProtocolUsage alternate_protocol_usage, + bool is_google_host) const; // Returns whether |job| is an orphaned job. bool IsJobOrphaned(Job* job) const; + // Calculates why Chrome uses a specific transport protocol for HTTP semantics + // and returns it as an enum. + // This returns ALTERNATE_PROTOCOL_USAGE_UNSPECIFIED_REASON as a default value + // when the reason is unknown. + AlternateProtocolUsage CalculateAlternateProtocolUsage(Job* job) const; + // Called when a Job encountered a network error that could be resolved by // trying a new proxy configuration. If there is another proxy configuration // to try then this method sets |next_state_| appropriately and returns either |