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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… 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"
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698