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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h

Issue 2001243002: Change POST-exclusion to idempotent-inclusion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded header, streamlining method Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
index 5111ec223fe5ea3555c633d7f152f4dab7a8bfb8..db75fd5cec8ccbdbc78090e109696ee68a69ab79 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h
@@ -42,24 +42,20 @@ class DataReductionProxyBypassProtocol {
// Decides whether to mark the data reduction proxy as temporarily bad and
// put it on the proxy retry map, which is maintained by the ProxyService of
// the URLRequestContext. 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(
net::URLRequest* request,
DataReductionProxyBypassType* proxy_bypass_type,
DataReductionProxyInfo* data_reduction_proxy_info);
- // 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.
- static bool IsRequestIdempotent(const net::URLRequest* request);
-
private:
// Must outlive |this|.
DataReductionProxyConfig* config_;
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyBypassProtocol);
};
} // namespace data_reduction_proxy
#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_BYPASS_PROTOCOL_H_

Powered by Google App Engine
This is Rietveld 408576698