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" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class HttpRequestHeaders; | 17 class HttpRequestHeaders; |
18 class HttpResponseHeaders; | 18 class HttpResponseHeaders; |
19 class HostPortPair; | 19 class HostPortPair; |
20 class ProxyInfo; | 20 class ProxyInfo; |
21 class ProxyServer; | 21 class ProxyServer; |
22 class ProxyService; | 22 class ProxyService; |
23 class URLRequest; | |
24 | 23 |
25 // Delegate for setting up a connection. | 24 // Delegate for setting up a connection. |
26 class NET_EXPORT ProxyDelegate { | 25 class NET_EXPORT ProxyDelegate { |
27 public: | 26 public: |
28 ProxyDelegate() { | 27 ProxyDelegate() { |
29 } | 28 } |
30 | 29 |
31 virtual ~ProxyDelegate() { | 30 virtual ~ProxyDelegate() { |
32 } | 31 } |
33 | 32 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // server if no valid proxy server is available. | 86 // server if no valid proxy server is available. |
88 virtual ProxyServer GetDefaultAlternativeProxy() const = 0; | 87 virtual ProxyServer GetDefaultAlternativeProxy() const = 0; |
89 | 88 |
90 private: | 89 private: |
91 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(ProxyDelegate); |
92 }; | 91 }; |
93 | 92 |
94 } | 93 } |
95 | 94 |
96 #endif // NET_BASE_PROXY_DELEGATE_H_ | 95 #endif // NET_BASE_PROXY_DELEGATE_H_ |
OLD | NEW |