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

Unified Diff: mojo/shell/view_manager_loader.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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
« no previous file with comments | « mojo/shell/network_service_loader.cc ('k') | mojo/shell/view_manager_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/view_manager_loader.h
diff --git a/mojo/shell/view_manager_loader.h b/mojo/shell/view_manager_loader.h
index 85454e239152afe8de5528a556e2c3e83662f23b..c858a8d03ed450b12b589a09ddbcb5226429fcee 100644
--- a/mojo/shell/view_manager_loader.h
+++ b/mojo/shell/view_manager_loader.h
@@ -8,7 +8,9 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/interface_factory.h"
#include "mojo/service_manager/service_loader.h"
+#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
namespace mojo {
@@ -17,7 +19,10 @@ class Application;
namespace shell {
// ServiceLoader responsible for creating connections to the ViewManager.
-class ViewManagerLoader : public ServiceLoader, public ApplicationDelegate {
+class ViewManagerLoader
+ : public ServiceLoader,
+ public ApplicationDelegate,
+ public InterfaceFactory<view_manager::ViewManagerInitService> {
public:
ViewManagerLoader();
virtual ~ViewManagerLoader();
@@ -33,7 +38,12 @@ class ViewManagerLoader : public ServiceLoader, public ApplicationDelegate {
// ApplicationDelegate overrides.
virtual bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) MOJO_OVERRIDE;
+ mojo::ApplicationConnection* connection) OVERRIDE;
+
+ // InterfaceFactory<view_manager::ViewManagerInitService> overrides.
+ virtual void Create(
+ ApplicationConnection* connection,
+ InterfaceRequest<view_manager::ViewManagerInitService> request) OVERRIDE;
ScopedVector<Application> apps_;
« no previous file with comments | « mojo/shell/network_service_loader.cc ('k') | mojo/shell/view_manager_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698