Remove redundant Tab constructors.
[chromium-blink-merge.git] / net / proxy / mojo_proxy_resolver_factory_impl.h
blobdcc7b482bf62c7f273c85f7889f7ea75437e14bd
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
3 // found in the LICENSE file.
5 #ifndef NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
6 #define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
8 #include <set>
10 #include "base/callback.h"
11 #include "net/interfaces/proxy_resolver_service.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
14 namespace net {
15 class HostResolver;
16 class ProxyResolverErrorObserver;
17 class ProxyResolverV8TracingFactory;
19 class MojoProxyResolverFactoryImpl : public interfaces::ProxyResolverFactory {
20 public:
21 explicit MojoProxyResolverFactoryImpl(
22 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request);
23 MojoProxyResolverFactoryImpl(
24 scoped_ptr<ProxyResolverV8TracingFactory> proxy_resolver_factory,
25 mojo::InterfaceRequest<interfaces::ProxyResolverFactory> request);
27 ~MojoProxyResolverFactoryImpl() override;
29 private:
30 class Job;
32 // interfaces::ProxyResolverFactory override.
33 void CreateResolver(
34 const mojo::String& pac_script,
35 mojo::InterfaceRequest<interfaces::ProxyResolver> request,
36 interfaces::ProxyResolverFactoryRequestClientPtr client) override;
38 void RemoveJob(Job* job);
40 const scoped_ptr<ProxyResolverV8TracingFactory> proxy_resolver_impl_factory_;
41 mojo::StrongBinding<interfaces::ProxyResolverFactory> binding_;
43 std::set<Job*> jobs_;
45 DISALLOW_COPY_AND_ASSIGN(MojoProxyResolverFactoryImpl);
48 } // namespace net
50 #endif // NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_