| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // non-null. | 76 // non-null. |
| 77 virtual void GetAlternativeProxy( | 77 virtual void GetAlternativeProxy( |
| 78 const GURL& url, | 78 const GURL& url, |
| 79 const ProxyServer& resolved_proxy_server, | 79 const ProxyServer& resolved_proxy_server, |
| 80 ProxyServer* alternative_proxy_server) const = 0; | 80 ProxyServer* alternative_proxy_server) const = 0; |
| 81 | 81 |
| 82 // Notifies the ProxyDelegate that |alternative_proxy_server| is broken. | 82 // Notifies the ProxyDelegate that |alternative_proxy_server| is broken. |
| 83 virtual void OnAlternativeProxyBroken( | 83 virtual void OnAlternativeProxyBroken( |
| 84 const ProxyServer& alternative_proxy_server) = 0; | 84 const ProxyServer& alternative_proxy_server) = 0; |
| 85 | 85 |
| 86 // Returns the default alternative proxy server. May return an invalid proxy |
| 87 // server if no valid proxy server is available. |
| 88 virtual ProxyServer GetDefaultAlternativeProxy() const = 0; |
| 89 |
| 86 private: | 90 private: |
| 87 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); |
| 88 }; | 92 }; |
| 89 | 93 |
| 90 } | 94 } |
| 91 | 95 |
| 92 #endif // NET_BASE_PROXY_DELEGATE_H_ | 96 #endif // NET_BASE_PROXY_DELEGATE_H_ |
| OLD | NEW |