OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PROXY_RESOLVER_H_ | 5 #ifndef NET_PROXY_PROXY_RESOLVER_H_ |
6 #define NET_PROXY_PROXY_RESOLVER_H_ | 6 #define NET_PROXY_PROXY_RESOLVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
14 #include "net/base/net_api.h" | 14 #include "net/base/net_export.h" |
15 #include "net/proxy/proxy_resolver_script_data.h" | 15 #include "net/proxy/proxy_resolver_script_data.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class BoundNetLog; | 19 class BoundNetLog; |
20 class ProxyInfo; | 20 class ProxyInfo; |
21 | 21 |
22 // Interface for "proxy resolvers". A ProxyResolver fills in a list of proxies | 22 // Interface for "proxy resolvers". A ProxyResolver fills in a list of proxies |
23 // to use for a particular URL. Generally the backend for a ProxyResolver is | 23 // to use for a particular URL. Generally the backend for a ProxyResolver is |
24 // a PAC script, but it doesn't need to be. ProxyResolver can service multiple | 24 // a PAC script, but it doesn't need to be. ProxyResolver can service multiple |
25 // requests at a time. | 25 // requests at a time. |
26 class NET_TEST ProxyResolver { | 26 class NET_EXPORT_PRIVATE ProxyResolver { |
27 public: | 27 public: |
28 // Opaque pointer type, to return a handle to cancel outstanding requests. | 28 // Opaque pointer type, to return a handle to cancel outstanding requests. |
29 typedef void* RequestHandle; | 29 typedef void* RequestHandle; |
30 | 30 |
31 // See |expects_pac_bytes()| for the meaning of |expects_pac_bytes|. | 31 // See |expects_pac_bytes()| for the meaning of |expects_pac_bytes|. |
32 explicit ProxyResolver(bool expects_pac_bytes) | 32 explicit ProxyResolver(bool expects_pac_bytes) |
33 : expects_pac_bytes_(expects_pac_bytes) {} | 33 : expects_pac_bytes_(expects_pac_bytes) {} |
34 | 34 |
35 virtual ~ProxyResolver() {} | 35 virtual ~ProxyResolver() {} |
36 | 36 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 private: | 76 private: |
77 const bool expects_pac_bytes_; | 77 const bool expects_pac_bytes_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(ProxyResolver); | 79 DISALLOW_COPY_AND_ASSIGN(ProxyResolver); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace net | 82 } // namespace net |
83 | 83 |
84 #endif // NET_PROXY_PROXY_RESOLVER_H_ | 84 #endif // NET_PROXY_PROXY_RESOLVER_H_ |
OLD | NEW |