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

Unified Diff: mojo/application/public/cpp/application_connection.h

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke comment Created 5 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
« no previous file with comments | « mandoline/ui/aura/surface_binding.cc ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/public/cpp/application_connection.h
diff --git a/mojo/application/public/cpp/application_connection.h b/mojo/application/public/cpp/application_connection.h
index e4affba14d589e8a25f8da1e9799f1a33a44808d..cb42e179e89c6460cf9e0363fe355630168c03b9 100644
--- a/mojo/application/public/cpp/application_connection.h
+++ b/mojo/application/public/cpp/application_connection.h
@@ -116,6 +116,17 @@ class ApplicationConnection {
virtual void SetRemoteServiceProviderConnectionErrorHandler(
const Closure& handler) = 0;
+ // Returns the id of the deepest content handler used in connecting to
+ // the application. If the content handler id has not yet been determined
+ // this returns false, use AddContentHandlerIDCallback() to schedule a
+ // callback when the content handler is has been obtained. A value of 0
+ // indicates no content handler was used in connecting to the application.
+ virtual bool GetContentHandlerID(uint32_t* content_handler_id) = 0;
+
+ // See description in GetTargetID(). If the id of the content handler has
+ // been obtained |callback| is run immediately.
+ virtual void AddContentHandlerIDCallback(const Closure& callback) = 0;
+
protected:
// Returns true if the connector was set, false if it was not set (e.g. by
// some filtering policy preventing this interface from being exposed).
« no previous file with comments | « mandoline/ui/aura/surface_binding.cc ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698