| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_PROXY_DELEGATE_H_ | 5 #ifndef NET_BASE_TEST_PROXY_DELEGATE_H_ |
| 6 #define NET_BASE_TEST_PROXY_DELEGATE_H_ | 6 #define NET_BASE_TEST_PROXY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/host_port_pair.h" | 10 #include "net/base/host_port_pair.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const HostPortPair& origin, | 64 const HostPortPair& origin, |
| 65 const HostPortPair& proxy_server, | 65 const HostPortPair& proxy_server, |
| 66 const HttpResponseHeaders& response_headers) override; | 66 const HttpResponseHeaders& response_headers) override; |
| 67 bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override; | 67 bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override; |
| 68 void GetAlternativeProxy( | 68 void GetAlternativeProxy( |
| 69 const GURL& url, | 69 const GURL& url, |
| 70 const ProxyServer& resolved_proxy_server, | 70 const ProxyServer& resolved_proxy_server, |
| 71 ProxyServer* alternative_proxy_server) const override; | 71 ProxyServer* alternative_proxy_server) const override; |
| 72 void OnAlternativeProxyBroken( | 72 void OnAlternativeProxyBroken( |
| 73 const ProxyServer& alternative_proxy_server) override; | 73 const ProxyServer& alternative_proxy_server) override; |
| 74 ProxyServer GetDefaultAlternativeProxy() const override; |
| 74 | 75 |
| 75 void set_alternative_proxy_server( | 76 void set_alternative_proxy_server( |
| 76 const ProxyServer& alternative_proxy_server) { | 77 const ProxyServer& alternative_proxy_server) { |
| 77 alternative_proxy_server_ = alternative_proxy_server; | 78 alternative_proxy_server_ = alternative_proxy_server; |
| 78 } | 79 } |
| 79 const ProxyServer& alternative_proxy_server() const { | 80 const ProxyServer& alternative_proxy_server() const { |
| 80 return alternative_proxy_server_; | 81 return alternative_proxy_server_; |
| 81 } | 82 } |
| 82 | 83 |
| 83 int get_alternative_proxy_invocations() const { | 84 int get_alternative_proxy_invocations() const { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 96 std::string on_tunnel_headers_received_status_line_; | 97 std::string on_tunnel_headers_received_status_line_; |
| 97 ProxyServer alternative_proxy_server_; | 98 ProxyServer alternative_proxy_server_; |
| 98 | 99 |
| 99 // Number of times GetAlternativeProxy() method has been called. | 100 // Number of times GetAlternativeProxy() method has been called. |
| 100 mutable int get_alternative_proxy_invocations_; | 101 mutable int get_alternative_proxy_invocations_; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace net | 104 } // namespace net |
| 104 | 105 |
| 105 #endif // NET_BASE_TEST_PROXY_DELEGATE_H_ | 106 #endif // NET_BASE_TEST_PROXY_DELEGATE_H_ |
| OLD | NEW |