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

Side by Side Diff: net/proxy/test_mojo_proxy_resolver_factory.cc

Issue 2888043008: Revert of Allow use of Mojo/V8 ProxyResolvers with URLRequestContextBuilder. (Closed)
Patch Set: Created 3 years, 7 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
(Empty)
1 // Copyright 2017 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 #include "net/proxy/test_mojo_proxy_resolver_factory.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 #include "net/proxy/mojo_proxy_resolver_factory_impl.h"
10
11 namespace net {
12
13 TestMojoProxyResolverFactory* TestMojoProxyResolverFactory::GetInstance() {
14 return base::Singleton<TestMojoProxyResolverFactory>::get();
15 }
16
17 std::unique_ptr<base::ScopedClosureRunner>
18 TestMojoProxyResolverFactory::CreateResolver(
19 const std::string& pac_script,
20 mojo::InterfaceRequest<interfaces::ProxyResolver> req,
21 interfaces::ProxyResolverFactoryRequestClientPtr client) {
22 resolver_created_ = true;
23 factory_->CreateResolver(pac_script, std::move(req), std::move(client));
24 return nullptr;
25 }
26
27 TestMojoProxyResolverFactory::TestMojoProxyResolverFactory() {
28 mojo::MakeStrongBinding(base::MakeUnique<MojoProxyResolverFactoryImpl>(),
29 mojo::MakeRequest(&factory_));
30 }
31
32 TestMojoProxyResolverFactory::~TestMojoProxyResolverFactory() = default;
33
34 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/test_mojo_proxy_resolver_factory.h ('k') | net/test/embedded_test_server/http_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698