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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return &host_resolver_; | 48 return &host_resolver_; |
49 } | 49 } |
50 | 50 |
51 NetLogWithSource GetNetLogWithSource() override { | 51 NetLogWithSource GetNetLogWithSource() override { |
52 DCHECK(thread_checker_.CalledOnValidThread()); | 52 DCHECK(thread_checker_.CalledOnValidThread()); |
53 return NetLogWithSource(); | 53 return NetLogWithSource(); |
54 } | 54 } |
55 | 55 |
56 private: | 56 private: |
57 // HostResolverMojo::Impl override. | 57 // HostResolverMojo::Impl override. |
58 void ResolveDns(interfaces::HostResolverRequestInfoPtr request_info, | 58 void ResolveDns(std::unique_ptr<HostResolver::RequestInfo> request_info, |
59 interfaces::HostResolverRequestClientPtr client) { | 59 interfaces::HostResolverRequestClientPtr client) { |
60 DCHECK(thread_checker_.CalledOnValidThread()); | 60 DCHECK(thread_checker_.CalledOnValidThread()); |
61 client_->ResolveDns(std::move(request_info), std::move(client)); | 61 client_->ResolveDns(std::move(request_info), std::move(client)); |
62 } | 62 } |
63 | 63 |
64 base::ThreadChecker thread_checker_; | 64 base::ThreadChecker thread_checker_; |
65 Client* client_; | 65 Client* client_; |
66 HostResolverMojo host_resolver_; | 66 HostResolverMojo host_resolver_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace net | 69 } // namespace net |
70 | 70 |
71 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ | 71 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ |
OLD | NEW |