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

Unified Diff: mojo/services/view_manager/view_manager_connection.h

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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: mojo/services/view_manager/view_manager_connection.h
diff --git a/mojo/services/view_manager/view_manager_connection.h b/mojo/services/view_manager/view_manager_connection.h
index 3dc79a348223c336dfcaed6d8ce835f6fb6abeb0..39d05f9315f6b7d11c6605447cadbacfd239cbc4 100644
--- a/mojo/services/view_manager/view_manager_connection.h
+++ b/mojo/services/view_manager/view_manager_connection.h
@@ -33,10 +33,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
TransportConnectionId id() const { return id_; }
- // Invoked from Service when connection is established.
- void Initialize(
- ServiceConnector<ViewManagerConnection, RootNodeManager>* service_factory,
- ScopedMessagePipeHandle client_handle);
+ // Invoked when connection is established.
+ void Initialize();
// Returns the Node with the specified id.
Node* GetNode(const NodeId& id);
@@ -76,6 +74,7 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
TransportChangeId change_id);
// Overridden from IViewManager:
+ virtual void SetClient(IViewManagerClient* client) OVERRIDE;
virtual void CreateNode(TransportConnectionSpecificNodeId node_id,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void DeleteNode(TransportNodeId transport_node_id,
@@ -110,6 +109,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerConnection
const ViewId& new_view_id,
const ViewId& old_view_id) OVERRIDE;
+ IViewManagerClient* client_;
+
// Id of this connection as assigned by RootNodeManager. Assigned in
// Initialize().
TransportConnectionId id_;

Powered by Google App Engine
This is Rietveld 408576698