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

Unified Diff: components/proxy_resolver/proxy_resolver_app.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: components/proxy_resolver/proxy_resolver_app.h
diff --git a/components/proxy_resolver/proxy_resolver_app.h b/components/proxy_resolver/proxy_resolver_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e9ad36ae3bf499359f69eab3cd5c75e58606847
--- /dev/null
+++ b/components/proxy_resolver/proxy_resolver_app.h
@@ -0,0 +1,37 @@
+// 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 COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
+#define COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_
+
+#include "base/macros.h"
+#include "net/interfaces/proxy_resolver_service.mojom.h"
+#include "third_party/mojo/src/mojo/public/cpp/application/application_delegate.h"
+#include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
+
+namespace proxy_resolver {
+
+class ProxyResolverApp
+ : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory> {
+ public:
+ ProxyResolverApp();
+ ~ProxyResolverApp() override;
+
+ private:
+ // mojo::ApplicationDelegate:
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ // mojo::InterfaceFactory<net::interfaces::ProxyResolverFactory>:
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<net::interfaces::ProxyResolverFactory>
+ request) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ProxyResolverApp);
+};
+
+} // namespace proxy_resolver
+
+#endif // COMPONENTS_PROXY_RESOLVER_PROXY_RESOLVER_APP_H_

Powered by Google App Engine
This is Rietveld 408576698