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

Unified Diff: mojo/services/public/cpp/view_manager/node.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/public/cpp/view_manager/node.h
diff --git a/mojo/services/public/cpp/view_manager/node.h b/mojo/services/public/cpp/view_manager/node.h
index 3c3ca83cbda02cdbbfd913a105b8ade8f145425b..aee4b21d77ec6a2b54823bfb9cf2941c1bfefbc8 100644
--- a/mojo/services/public/cpp/view_manager/node.h
+++ b/mojo/services/public/cpp/view_manager/node.h
@@ -10,12 +10,14 @@
#include "base/basictypes.h"
#include "base/observer_list.h"
#include "mojo/public/cpp/bindings/array.h"
+#include "mojo/public/interfaces/application/service_provider.mojom.h"
#include "mojo/services/public/cpp/view_manager/types.h"
#include "mojo/services/public/interfaces/view_manager/view_manager_constants.mojom.h"
#include "ui/gfx/geometry/rect.h"
namespace mojo {
+class ServiceProviderImpl;
class View;
class ViewManager;
class NodeObserver;
@@ -73,6 +75,9 @@ class Node {
// Embedding.
void Embed(const String& url);
+ scoped_ptr<ServiceProvider> Embed(
+ const String& url,
+ scoped_ptr<ServiceProviderImpl> exported_services);
protected:
// This class is subclassed only by test classes that provide a public ctor.

Powered by Google App Engine
This is Rietveld 408576698