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

Side by Side Diff: net/base/proxy_delegate.h

Issue 1684123004: Bypass the DataReductionProxy for all POST requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nit issues and Rebase Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BASE_PROXY_DELEGATE_H_ 5 #ifndef NET_BASE_PROXY_DELEGATE_H_
6 #define NET_BASE_PROXY_DELEGATE_H_ 6 #define NET_BASE_PROXY_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 // Delegate for setting up a connection. 23 // Delegate for setting up a connection.
24 class NET_EXPORT ProxyDelegate { 24 class NET_EXPORT ProxyDelegate {
25 public: 25 public:
26 ProxyDelegate() { 26 ProxyDelegate() {
27 } 27 }
28 28
29 virtual ~ProxyDelegate() { 29 virtual ~ProxyDelegate() {
30 } 30 }
31 31
32 // Called as the proxy is being resolved for |url|. Allows the delegate to 32 // Called as the proxy is being resolved for |url| for a |method| request.
bengr 2016/02/26 23:43:33 You need to say somewhere (here, but maybe also ot
33 // override the proxy resolution decision made by ProxyService. The delegate 33 // Allows the delegate to override the proxy resolution decision made by
34 // may override the decision by modifying the ProxyInfo |result|. 34 // ProxyService. The delegate may override the decision by modifying the
35 // ProxyInfo |result|.
35 virtual void OnResolveProxy(const GURL& url, 36 virtual void OnResolveProxy(const GURL& url,
37 const std::string& method,
bengr 2016/02/26 23:43:33 #include <string>
36 int load_flags, 38 int load_flags,
37 const ProxyService& proxy_service, 39 const ProxyService& proxy_service,
38 ProxyInfo* result) = 0; 40 ProxyInfo* result) = 0;
39 41
40 // Called when use of |bad_proxy| fails due to |net_error|. |net_error| is 42 // Called when use of |bad_proxy| fails due to |net_error|. |net_error| is
41 // the network error encountered, if any, and OK if the fallback was 43 // the network error encountered, if any, and OK if the fallback was
42 // for a reason other than a network error (e.g. the proxy service was 44 // for a reason other than a network error (e.g. the proxy service was
43 // explicitly directed to skip a proxy). 45 // explicitly directed to skip a proxy).
44 virtual void OnFallback(const ProxyServer& bad_proxy, 46 virtual void OnFallback(const ProxyServer& bad_proxy,
45 int net_error) = 0; 47 int net_error) = 0;
(...skipping 25 matching lines...) Expand all
71 // allowed to push cross-origin resources. 73 // allowed to push cross-origin resources.
72 virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0; 74 virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0;
73 75
74 private: 76 private:
75 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); 77 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate);
76 }; 78 };
77 79
78 } 80 }
79 81
80 #endif // NET_BASE_PROXY_DELEGATE_H_ 82 #endif // NET_BASE_PROXY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698