Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: net/proxy/mojo_proxy_resolver_v8_tracing_bindings.h

Issue 2083463002: Replace //net TypeConverters with StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-converter-cleanup--gurl
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698