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

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

Issue 2110973002: Removing load_flags from ProxyService and ProxyDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/base/test_proxy_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 virtual ~ProxyDelegate() { 31 virtual ~ProxyDelegate() {
32 } 32 }
33 33
34 // Called as the proxy is being resolved for |url| for a |method| request. 34 // Called as the proxy is being resolved for |url| for a |method| request.
35 // The caller may pass an empty string to get method agnostic resoulution. 35 // The caller may pass an empty string to get method agnostic resoulution.
36 // Allows the delegate to override the proxy resolution decision made by 36 // Allows the delegate to override the proxy resolution decision made by
37 // ProxyService. The delegate may override the decision by modifying the 37 // ProxyService. The delegate may override the decision by modifying the
38 // ProxyInfo |result|. 38 // ProxyInfo |result|.
39 virtual void OnResolveProxy(const GURL& url, 39 virtual void OnResolveProxy(const GURL& url,
40 const std::string& method, 40 const std::string& method,
41 int load_flags,
42 const ProxyService& proxy_service, 41 const ProxyService& proxy_service,
43 ProxyInfo* result) = 0; 42 ProxyInfo* result) = 0;
44 43
45 // Called when use of |bad_proxy| fails due to |net_error|. |net_error| is 44 // Called when use of |bad_proxy| fails due to |net_error|. |net_error| is
46 // the network error encountered, if any, and OK if the fallback was 45 // the network error encountered, if any, and OK if the fallback was
47 // for a reason other than a network error (e.g. the proxy service was 46 // for a reason other than a network error (e.g. the proxy service was
48 // explicitly directed to skip a proxy). 47 // explicitly directed to skip a proxy).
49 virtual void OnFallback(const ProxyServer& bad_proxy, 48 virtual void OnFallback(const ProxyServer& bad_proxy,
50 int net_error) = 0; 49 int net_error) = 0;
51 50
(...skipping 17 matching lines...) Expand all
69 // allowed to push cross-origin resources. 68 // allowed to push cross-origin resources.
70 virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0; 69 virtual bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) = 0;
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); 72 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate);
74 }; 73 };
75 74
76 } 75 }
77 76
78 #endif // NET_BASE_PROXY_DELEGATE_H_ 77 #endif // NET_BASE_PROXY_DELEGATE_H_
OLDNEW
« no previous file with comments | « jingle/glue/proxy_resolving_client_socket.cc ('k') | net/base/test_proxy_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698