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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
13 #include "net/proxy/proxy_resolver.h" | 13 #include "net/proxy/proxy_resolver.h" |
14 #include "net/proxy/proxy_resolver_factory.h" | 14 #include "net/proxy/proxy_resolver_factory.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class HostResolver; | 18 class HostResolver; |
| 19 class NetLogWithSource; |
19 | 20 |
20 // ProxyResolverV8Tracing is a non-blocking proxy resolver. | 21 // ProxyResolverV8Tracing is a non-blocking proxy resolver. |
21 class NET_EXPORT ProxyResolverV8Tracing { | 22 class NET_EXPORT ProxyResolverV8Tracing { |
22 public: | 23 public: |
23 // Bindings is an interface used by ProxyResolverV8Tracing to delegate | 24 // Bindings is an interface used by ProxyResolverV8Tracing to delegate |
24 // per-request functionality. Each instance will be destroyed on the origin | 25 // per-request functionality. Each instance will be destroyed on the origin |
25 // thread of the ProxyResolverV8Tracing when the request completes or is | 26 // thread of the ProxyResolverV8Tracing when the request completes or is |
26 // cancelled. All methods will be invoked from the origin thread. | 27 // cancelled. All methods will be invoked from the origin thread. |
27 class Bindings { | 28 class Bindings { |
28 public: | 29 public: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 87 |
87 static std::unique_ptr<ProxyResolverV8TracingFactory> Create(); | 88 static std::unique_ptr<ProxyResolverV8TracingFactory> Create(); |
88 | 89 |
89 private: | 90 private: |
90 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingFactory); | 91 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingFactory); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace net | 94 } // namespace net |
94 | 95 |
95 #endif // NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ | 96 #endif // NET_PROXY_PROXY_RESOLVER_V8_TRACING_H_ |
OLD | NEW |