1 // Copyright 2015 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SERVICES_PROXY_RESOLVER_PROXY_RESOLVER_IMPL_H_
6 #define SERVICES_PROXY_RESOLVER_PROXY_RESOLVER_IMPL_H_
11 #include "base/memory/ref_counted.h"
12 #include "net/proxy_resolution/proxy_resolver.h"
13 #include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
15 namespace proxy_resolver {
17 class ProxyResolverV8Tracing;
19 class ProxyResolverImpl : public mojom::ProxyResolver {
21 explicit ProxyResolverImpl(std::unique_ptr<ProxyResolverV8Tracing> resolver);
23 ProxyResolverImpl(const ProxyResolverImpl&) = delete;
24 ProxyResolverImpl& operator=(const ProxyResolverImpl&) = delete;
26 ~ProxyResolverImpl() override;
31 // mojom::ProxyResolver overrides.
34 const net::NetworkAnonymizationKey& network_anonymization_key,
35 mojo::PendingRemote<mojom::ProxyResolverRequestClient> client) override;
37 void DeleteJob(Job* job);
39 std::unique_ptr<ProxyResolverV8Tracing> resolver_;
40 std::map<Job*, std::unique_ptr<Job>> resolve_jobs_;
43 } // namespace proxy_resolver
45 #endif // SERVICES_PROXY_RESOLVER_PROXY_RESOLVER_IMPL_H_