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

Unified Diff: shell/application_manager/identity.h

Issue 1472923002: Allows URL queries to be passed to contet handlers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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: shell/application_manager/identity.h
diff --git a/shell/application_manager/identity.h b/shell/application_manager/identity.h
index b6745a5ee2e000ef457ae90d3157fa68a1a19f4b..4cbfa59676f16e136d06a7f8228f5a4b6d9e6a86 100644
--- a/shell/application_manager/identity.h
+++ b/shell/application_manager/identity.h
@@ -13,11 +13,14 @@ namespace shell {
* Represents the identity of an application. |url| is the url of the
* application. |qualifier| is a string that allows to tie a specific instance
* of an application to another. It is used by content handlers that need to be
- * run in the context of another application.
+ * run in the context of another application. If |with_query| is true, 2 urls
+ * with different query parameters will not have the same identity.
ppi 2015/11/24 10:47:21 Can you describe the cases when we want to be "que
qsr 2015/11/24 12:24:32 Changed identity to not care about query at all.
*/
struct Identity {
- Identity(const GURL& url, const std::string& qualifier);
- explicit Identity(const GURL& url);
+ Identity(const GURL& url,
+ const std::string& qualifier,
+ bool with_query = false);
ppi 2015/11/24 10:47:21 Passing "with_query" in a constructor results in w
ppi 2015/11/24 10:47:21 "bool query_sensitive" would probably be clearer -
qsr 2015/11/24 12:24:32 Acknowledged.
qsr 2015/11/24 12:24:32 Acknowledged.
+ explicit Identity(const GURL& url, bool with_query = false);
bool operator<(const Identity& other) const;
const GURL url;

Powered by Google App Engine
This is Rietveld 408576698