| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ | 5 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ |
| 6 #define NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ | 6 #define NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| 11 #include "mojo/common/common_type_converters.h" | 11 #include "mojo/common/common_type_converters.h" |
| 12 #include "net/dns/host_resolver_mojo.h" | 12 #include "net/dns/host_resolver_mojo.h" |
| 13 #include "net/interfaces/proxy_resolver_service.mojom.h" | 13 #include "net/interfaces/proxy_resolver_service.mojom.h" |
| 14 #include "net/log/net_log_with_source.h" |
| 14 #include "net/proxy/proxy_resolver_v8_tracing.h" | 15 #include "net/proxy/proxy_resolver_v8_tracing.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| 18 // An implementation of ProxyResolverV8Tracing::Bindings that forwards requests | 19 // An implementation of ProxyResolverV8Tracing::Bindings that forwards requests |
| 19 // onto a Client mojo interface. Alert() and OnError() may be called from any | 20 // onto a Client mojo interface. Alert() and OnError() may be called from any |
| 20 // thread; when they are called from another thread, the calls are proxied to | 21 // thread; when they are called from another thread, the calls are proxied to |
| 21 // the origin task runner. GetHostResolver() and GetNetLogWithSource() may only | 22 // the origin task runner. GetHostResolver() and GetNetLogWithSource() may only |
| 22 // be | 23 // be |
| 23 // called from the origin task runner. | 24 // called from the origin task runner. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 62 } |
| 62 | 63 |
| 63 base::ThreadChecker thread_checker_; | 64 base::ThreadChecker thread_checker_; |
| 64 Client* client_; | 65 Client* client_; |
| 65 HostResolverMojo host_resolver_; | 66 HostResolverMojo host_resolver_; |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace net | 69 } // namespace net |
| 69 | 70 |
| 70 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ | 71 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ |
| OLD | NEW |