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

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

Issue 2453973003: Add a QUIC proxy server to the list of QUIC servers supported at start up (Closed)
Patch Set: Created 4 years, 1 month 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 | « net/base/proxy_delegate.h ('k') | net/base/test_proxy_delegate.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « net/base/proxy_delegate.h ('k') | net/base/test_proxy_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698