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

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

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase + fix android Created 5 years, 10 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/public/cpp/application/application_connection.h
diff --git a/mojo/public/cpp/application/application_connection.h b/mojo/public/cpp/application/application_connection.h
index 5990be3524c3abd873ae852bb08c769e648aaa9b..8406235215b0341207f3da876392b0e6384178d4 100644
--- a/mojo/public/cpp/application/application_connection.h
+++ b/mojo/public/cpp/application/application_connection.h
@@ -55,6 +55,18 @@ class ApplicationConnection {
}
}
+ // Returns the URL that was used by the source application to establish a
+ // connection to the destination application.
+ //
+ // When ApplicationConnection is representing an incoming connection this can
+ // be different than the URL the application was initially loaded from, if the
+ // application handles multiple URLs. Note that this is the URL after all
+ // URL rewriting and HTTP redirects have been performed.
+ //
+ // When ApplicationConnection is representing and outgoing connection, this
+ // will be the same as the value returned by GetRemoveApplicationURL().
+ virtual const std::string& GetConnectionURL() = 0;
+
// Returns the URL identifying the remote application on this connection.
virtual const std::string& GetRemoteApplicationURL() = 0;

Powered by Google App Engine
This is Rietveld 408576698