| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h
|
| deleted file mode 100644
|
| index 5658dcefb1172ad0b20e26889e079b76e450ada5..0000000000000000000000000000000000000000
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h
|
| +++ /dev/null
|
| @@ -1,77 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PROTOCOL_H_
|
| -#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PROTOCOL_H_
|
| -
|
| -#include "base/memory/ref_counted.h"
|
| -#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h"
|
| -#include "net/proxy/proxy_retry_info.h"
|
| -
|
| -namespace base {
|
| -class TimeDelta;
|
| -}
|
| -
|
| -namespace net {
|
| -class HttpResponseHeaders;
|
| -class ProxyConfig;
|
| -class ProxyInfo;
|
| -class ProxyServer;
|
| -class URLRequest;
|
| -}
|
| -
|
| -class GURL;
|
| -
|
| -namespace data_reduction_proxy {
|
| -
|
| -class DataReductionProxyEventStore;
|
| -class DataReductionProxyParams;
|
| -
|
| -// Decides whether to mark the data reduction proxy as temporarily bad and
|
| -// put it on the proxy retry list. Returns true if the request should be
|
| -// retried. Updates the load flags in |request| for some bypass types, e.g.,
|
| -// "block-once". Returns the DataReductionProxyBypassType (if not NULL).
|
| -bool MaybeBypassProxyAndPrepareToRetry(
|
| - const DataReductionProxyParams* params,
|
| - net::URLRequest* request,
|
| - DataReductionProxyBypassType* proxy_bypass_type,
|
| - DataReductionProxyEventStore* event_store);
|
| -
|
| -// Adds data reduction proxies to |result|, where applicable, if result
|
| -// otherwise uses a direct connection for |url|, and the data reduction proxy is
|
| -// not bypassed. Also, configures |result| to proceed directly to the origin if
|
| -// |result|'s current proxy is the data reduction proxy, the
|
| -// |net::LOAD_BYPASS_DATA_REDUCTION_PROXY| |load_flag| is set, and the
|
| -// DataCompressionProxyCriticalBypass Finch trial is set.
|
| -void OnResolveProxyHandler(const GURL& url,
|
| - int load_flags,
|
| - const net::ProxyConfig& data_reduction_proxy_config,
|
| - const net::ProxyRetryInfoMap& proxy_retry_info,
|
| - const DataReductionProxyParams* params,
|
| - net::ProxyInfo* result);
|
| -
|
| -// Returns true if the request method is idempotent. Only idempotent requests
|
| -// are retried on a bypass. Visible as part of the public API for testing.
|
| -bool IsRequestIdempotent(const net::URLRequest* request);
|
| -
|
| -// Sets the override headers to contain a status line that indicates a
|
| -// redirect (a 302), a "Location:" header that points to the request url,
|
| -// and sets load flags to bypass proxies.
|
| -// Visible as part of the public API for testing.
|
| -void OverrideResponseAsRedirect(
|
| - net::URLRequest* request,
|
| - const net::HttpResponseHeaders* original_response_headers,
|
| - scoped_refptr<net::HttpResponseHeaders>* override_response_headers);
|
| -
|
| -// Adds non-empty entries in |data_reduction_proxies| to the retry map
|
| -// maintained by the proxy service of the request. Adds
|
| -// |data_reduction_proxies.second| to the retry list only if |bypass_all| is
|
| -// true. Visible as part of the public API for testing.
|
| -void MarkProxiesAsBadUntil(net::URLRequest* request,
|
| - const base::TimeDelta& bypass_duration,
|
| - bool bypass_all,
|
| - const std::pair<GURL, GURL>& data_reduction_proxies);
|
| -
|
| -} // namespace data_reduction_proxy
|
| -#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_PROTOCOL_H_
|
|
|