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

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

Issue 1145153004: Split ProxyResolverV8Tracing into an implementation and a wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_FACTORY_IMPL_H_ 5 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
6 #define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ 6 #define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "net/interfaces/proxy_resolver_service.mojom.h" 11 #include "net/interfaces/proxy_resolver_service.mojom.h"
12 #include "net/proxy/proxy_resolver.h" 12 #include "net/proxy/proxy_resolver.h"
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
14 14
15 namespace net { 15 namespace net {
16 class HostResolver; 16 class HostResolver;
17 class ProxyResolverErrorObserver; 17 class ProxyResolverErrorObserver;
18 class ProxyResolverFactory; 18 class ProxyResolverFactory;
19 19
20 class MojoProxyResolverFactoryImpl : public interfaces::ProxyResolverFactory { 20 class MojoProxyResolverFactoryImpl : public interfaces::ProxyResolverFactory {
21 public: 21 public:
22 using Factory = base::Callback<scoped_ptr<net::ProxyResolverFactory>( 22 using Factory = base::Callback<scoped_ptr<net::ProxyResolverFactory>(
23 HostResolver*, 23 HostResolver*,
24 scoped_ptr<ProxyResolverErrorObserver>, 24 scoped_ptr<ProxyResolverErrorObserver>)>;
25 const ProxyResolver::LoadStateChangedCallback&)>;
26 25
27 explicit MojoProxyResolverFactoryImpl( 26 explicit MojoProxyResolverFactoryImpl(
28 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request); 27 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request);
29 MojoProxyResolverFactoryImpl( 28 MojoProxyResolverFactoryImpl(
30 const Factory& proxy_resolver_factory, 29 const Factory& proxy_resolver_factory,
31 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request); 30 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request);
32 31
33 ~MojoProxyResolverFactoryImpl() override; 32 ~MojoProxyResolverFactoryImpl() override;
34 33
35 private: 34 private:
(...skipping 13 matching lines...) Expand all
49 mojo::StrongBinding<interfaces::ProxyResolverFactory> binding_; 48 mojo::StrongBinding<interfaces::ProxyResolverFactory> binding_;
50 49
51 std::set<Job*> jobs_; 50 std::set<Job*> jobs_;
52 51
53 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl); 52 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl);
54 }; 53 };
55 54
56 } // namespace net 55 } // namespace net
57 56
58 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_ 57 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « net/proxy/load_state_change_coalescer_unittest.cc ('k') | net/proxy/mojo_proxy_resolver_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698