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

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

Issue 910343003: Create an in-process v8 proxy resolver using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-complete-patch
Patch Set: Remove extra space. Created 5 years, 9 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
« no previous file with comments | « net/net.gypi ('k') | net/proxy/in_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
6 #define NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "net/proxy/mojo_proxy_resolver_factory.h"
10
11 template <typename T>
12 struct DefaultSingletonTraits;
13
14 namespace net {
15
16 // Factory to connect to an in-process Mojo proxy resolver service.
17 // NOTE: This is intended to be temporary for debugging purposes and will be
18 // removed when we're confident with the out-of-process implementation.
19 class InProcessMojoProxyResolverFactory : public MojoProxyResolverFactory {
20 public:
21 static InProcessMojoProxyResolverFactory* GetInstance();
22
23 // Overridden from MojoProxyResolverFactory:
24 void Create(mojo::InterfaceRequest<interfaces::ProxyResolver> req,
25 interfaces::HostResolverPtr host_resolver) override;
26
27 private:
28 InProcessMojoProxyResolverFactory();
29 ~InProcessMojoProxyResolverFactory() override;
30 friend struct DefaultSingletonTraits<InProcessMojoProxyResolverFactory>;
31
32 interfaces::ProxyResolverFactoryPtr factory_;
33
34 DISALLOW_COPY_AND_ASSIGN(InProcessMojoProxyResolverFactory);
35 };
36
37 } // namespace net
38
39 #endif // NET_PROXY_IN_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/proxy/in_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698