Index: components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h |
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h |
index 4c28498f79ffdbf080422210b703a2512873b85c..1b0f8ecb927edcc707efd7b015c90ab18da340d8 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h |
@@ -7,6 +7,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
+#include "webkit/common/resource_type.h" |
namespace base { |
class TimeDelta; |
@@ -16,6 +17,7 @@ namespace net { |
class HttpResponseHeaders; |
class ProxyServer; |
class URLRequest; |
+class ProxyInfo; |
} |
class GURL; |
@@ -33,6 +35,16 @@ bool MaybeBypassProxyAndPrepareToRetry( |
const net::HttpResponseHeaders* original_response_headers, |
scoped_refptr<net::HttpResponseHeaders>* override_response_headers); |
+// Return DataReductionProxy-specific load flags to be associated with the |
+// given request. |
+int BuildLoadFlagsForRequest(ResourceType::Type resource_type); |
+ |
+// Upon ProxyService.ResolveProxy(), bypass if the effective proxy is the data |
+// reduction proxy and the net::LOAD_BYPASS_DATA_REDUCTION_PROXY load_flag is |
+// set. |
+void OnResolveProxyHandler(const GURL& url, int load_flags, |
+ 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); |