| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_V8_TRACING_H_ | 5 #ifndef NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ |
| 6 #define NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ | 6 #define NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Invoked in response to an alert() call by the PAC script. | 32 // Invoked in response to an alert() call by the PAC script. |
| 33 virtual void Alert(const base::string16& message) = 0; | 33 virtual void Alert(const base::string16& message) = 0; |
| 34 | 34 |
| 35 // Invoked in response to an error in the PAC script. | 35 // Invoked in response to an error in the PAC script. |
| 36 virtual void OnError(int line_number, const base::string16& message) = 0; | 36 virtual void OnError(int line_number, const base::string16& message) = 0; |
| 37 | 37 |
| 38 // Returns a HostResolver to use for DNS resolution. | 38 // Returns a HostResolver to use for DNS resolution. |
| 39 virtual HostResolver* GetHostResolver() = 0; | 39 virtual HostResolver* GetHostResolver() = 0; |
| 40 | 40 |
| 41 // Returns a BoundNetLog to be passed to the HostResolver returned by | 41 // Returns a NetLogWithSource to be passed to the HostResolver returned by |
| 42 // GetHostResolver(). | 42 // GetHostResolver(). |
| 43 virtual BoundNetLog GetBoundNetLog() = 0; | 43 virtual NetLogWithSource GetNetLogWithSource() = 0; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(Bindings); | 46 DISALLOW_COPY_AND_ASSIGN(Bindings); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 virtual ~ProxyResolverV8Tracing() {} | 49 virtual ~ProxyResolverV8Tracing() {} |
| 50 | 50 |
| 51 // Gets a list of proxy servers to use for |url|. This request always | 51 // Gets a list of proxy servers to use for |url|. This request always |
| 52 // runs asynchronously and notifies the result by running |callback|. If the | 52 // runs asynchronously and notifies the result by running |callback|. If the |
| 53 // result code is OK then the request was successful and |results| contains | 53 // result code is OK then the request was successful and |results| contains |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 static std::unique_ptr<ProxyResolverV8TracingFactory> Create(); | 87 static std::unique_ptr<ProxyResolverV8TracingFactory> Create(); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingFactory); | 90 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingFactory); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace net | 93 } // namespace net |
| 94 | 94 |
| 95 #endif // NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ | 95 #endif // NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ |
| OLD | NEW |