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

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

Issue 433513005: Pass ServiceProvider thru ViewManagerService::Embed() allowing embedder & embeddee to expose servic… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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_service_impl.h
diff --git a/mojo/services/view_manager/view_manager_service_impl.h b/mojo/services/view_manager/view_manager_service_impl.h
index 9806fbf89586f7e65a6aeea18131dfc96f414b8f..4d130ac983165bed1e9243e0f5f445b00f295e61 100644
--- a/mojo/services/view_manager/view_manager_service_impl.h
+++ b/mojo/services/view_manager/view_manager_service_impl.h
@@ -46,7 +46,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
ConnectionSpecificId creator_id,
const std::string& creator_url,
const std::string& url,
- const NodeId& root_id);
+ const NodeId& root_id,
+ InterfaceRequest<ServiceProvider> service_provider);
virtual ~ViewManagerServiceImpl();
// Used to mark this connection as originating from a call to
@@ -142,7 +143,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
// Adds |node_id| to the set of roots this connection knows about. The caller
// should have verified |node_id| is not among the roots of this connection.
- void AddRoot(const NodeId& node_id);
+ void AddRoot(const NodeId& node_id,
+ InterfaceRequest<ServiceProvider> service_provider);
// Removes |node_id| from the set of roots this connection knows about.
void RemoveRoot(const NodeId& node_id);
@@ -198,6 +200,7 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
const Callback<void(bool)>& callback) OVERRIDE;
virtual void Embed(const String& url,
Id transport_node_id,
+ ServiceProviderPtr service_provider,
const Callback<void(bool)>& callback) OVERRIDE;
virtual void DispatchOnViewInputEvent(Id transport_view_id,
EventPtr event) OVERRIDE;
@@ -247,6 +250,8 @@ class MOJO_VIEW_MANAGER_EXPORT ViewManagerServiceImpl
// See description above setter.
bool delete_on_connection_error_;
+ InterfaceRequest<ServiceProvider> service_provider_;
+
DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl);
};
« no previous file with comments | « mojo/services/view_manager/view_manager_init_service_impl.cc ('k') | mojo/services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698