Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / mojo / services / public / cpp / view_manager / view_manager_client_factory.h
index 608fb0d..70e5927 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_CLIENT_FACTORY_H_
 
+#include "base/memory/scoped_ptr.h"
 #include "mojo/public/cpp/application/interface_factory.h"
 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
 
@@ -19,12 +20,17 @@ class Shell;
 class ViewManagerClientFactory : public InterfaceFactory<ViewManagerClient> {
  public:
   ViewManagerClientFactory(Shell* shell, ViewManagerDelegate* delegate);
-  virtual ~ViewManagerClientFactory();
+  ~ViewManagerClientFactory() override;
+
+  // Creates a ViewManagerClient from the supplied arguments.
+  static scoped_ptr<ViewManagerClient> WeakBindViewManagerToPipe(
+      ScopedMessagePipeHandle handle,
+      Shell* shell,
+      ViewManagerDelegate* delegate);
 
   // InterfaceFactory<ViewManagerClient> implementation.
-  virtual void Create(ApplicationConnection* connection,
-                      InterfaceRequest<ViewManagerClient> request)
-      MOJO_OVERRIDE;
+  void Create(ApplicationConnection* connection,
+              InterfaceRequest<ViewManagerClient> request) override;
 
  private:
   Shell* shell_;