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

Unified Diff: chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h

Issue 1128453004: Embed a simple Mojo shell in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h
diff --git a/chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h b/chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h
deleted file mode 100644
index da17a3cbd4b00223b546cfd0e45d22bb256213a8..0000000000000000000000000000000000000000
--- a/chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
-#define CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
-
-#include "base/macros.h"
-#include "net/interfaces/proxy_resolver_service.mojom.h"
-
-template <typename Type>
-struct DefaultSingletonTraits;
-
-// A factory used to create connections to Mojo proxy resolver services run in a
-// utility process. All Mojo proxy resolver services will be run in the same
-// utility process. Utility process crashes are detected and the utility
-// process is automatically restarted.
-class UtilityProcessMojoProxyResolverFactory
- : public net::interfaces::ProxyResolverFactory,
- public mojo::ErrorHandler {
- public:
- static UtilityProcessMojoProxyResolverFactory* GetInstance();
-
- // Overridden from net::interfaces::ProxyResolverFactory:
- void CreateResolver(
- const mojo::String& pac_script,
- mojo::InterfaceRequest<net::interfaces::ProxyResolver> req,
- net::interfaces::HostResolverPtr host_resolver,
- net::interfaces::ProxyResolverFactoryRequestClientPtr client) override;
-
- private:
- friend struct DefaultSingletonTraits<UtilityProcessMojoProxyResolverFactory>;
- UtilityProcessMojoProxyResolverFactory();
- ~UtilityProcessMojoProxyResolverFactory() override;
-
- // Overridden from mojo::ErrorHandler:
- void OnConnectionError() override;
-
- // Creates a new utility process and connects to its Mojo proxy resolver
- // factory.
- void CreateProcessAndConnect();
-
- net::interfaces::ProxyResolverFactoryPtr resolver_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory);
-};
-
-#endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698