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

Unified Diff: mojo/services/public/cpp/view_manager/view_manager.h

Issue 322923002: Pass embedding app identity through at embed time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/view_manager.h
diff --git a/mojo/services/public/cpp/view_manager/view_manager.h b/mojo/services/public/cpp/view_manager/view_manager.h
index f02d38fcb94566992712f8d902400310632e8feb..36a1c4a7acae1c04fd02f9940ddcb54a713dc547 100644
--- a/mojo/services/public/cpp/view_manager/view_manager.h
+++ b/mojo/services/public/cpp/view_manager/view_manager.h
@@ -5,6 +5,7 @@
#ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_
+#include <string>
#include <vector>
#include "mojo/services/public/cpp/view_manager/view_manager_types.h"
@@ -22,6 +23,9 @@ class ViewManager {
// Delegate is owned by the caller.
static void Create(Application* application, ViewManagerDelegate* delegate);
+ // Returns the URL of the application that embedded this application.
+ virtual const std::string& GetEmbedderURL() const = 0;
+
// Returns all root nodes known to this connection.
virtual const std::vector<ViewTreeNode*>& GetRoots() const = 0;

Powered by Google App Engine
This is Rietveld 408576698