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

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: Created 4 years, 5 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return &host_resolver_; 46 return &host_resolver_;
47 } 47 }
48 48
49 BoundNetLog GetBoundNetLog() override { 49 BoundNetLog GetBoundNetLog() override {
50 DCHECK(thread_checker_.CalledOnValidThread()); 50 DCHECK(thread_checker_.CalledOnValidThread());
51 return BoundNetLog(); 51 return BoundNetLog();
52 } 52 }
53 53
54 private: 54 private:
55 // HostResolverMojo::Impl override. 55 // HostResolverMojo::Impl override.
56 void ResolveDns(interfaces::HostResolverRequestInfoPtr request_info, 56 void ResolveDns(std::unique_ptr<HostResolver::RequestInfo> request_info,
57 interfaces::HostResolverRequestClientPtr client) { 57 interfaces::HostResolverRequestClientPtr client) {
58 DCHECK(thread_checker_.CalledOnValidThread()); 58 DCHECK(thread_checker_.CalledOnValidThread());
59 client_->ResolveDns(std::move(request_info), std::move(client)); 59 client_->ResolveDns(std::move(request_info), std::move(client));
60 } 60 }
61 61
62 base::ThreadChecker thread_checker_; 62 base::ThreadChecker thread_checker_;
63 Client* client_; 63 Client* client_;
64 HostResolverMojo host_resolver_; 64 HostResolverMojo host_resolver_;
65 }; 65 };
66 66
67 } // namespace net 67 } // namespace net
68 68
69 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_ 69 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_V8_TRACING_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698