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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SHELL_APPLICATION_MANAGER_IDENTITY_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_IDENTITY_H_
6 #define SHELL_APPLICATION_MANAGER_IDENTITY_H_ 6 #define SHELL_APPLICATION_MANAGER_IDENTITY_H_
7 7
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace shell { 10 namespace shell {
11 11
12 /** 12 /**
13 * Represents the identity of an application. |url| is the url of the 13 * Represents the identity of an application. |url| is the url of the
14 * application. |qualifier| is a string that allows to tie a specific instance 14 * application. |qualifier| is a string that allows to tie a specific instance
15 * of an application to another. It is used by content handlers that need to be 15 * of an application to another. It is used by content handlers that need to be
16 * run in the context of another application. 16 * run in the context of another application. If |with_query| is true, 2 urls
17 * 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.
17 */ 18 */
18 struct Identity { 19 struct Identity {
19 Identity(const GURL& url, const std::string& qualifier); 20 Identity(const GURL& url,
20 explicit Identity(const GURL& url); 21 const std::string& qualifier,
22 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.
23 explicit Identity(const GURL& url, bool with_query = false);
21 bool operator<(const Identity& other) const; 24 bool operator<(const Identity& other) const;
22 25
23 const GURL url; 26 const GURL url;
24 const std::string qualifier; 27 const std::string qualifier;
25 }; 28 };
26 29
27 } // namespace shell 30 } // namespace shell
28 31
29 #endif // SHELL_APPLICATION_MANAGER_IDENTITY_H_ 32 #endif // SHELL_APPLICATION_MANAGER_IDENTITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698