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

Side by Side Diff: shell/application_manager/query_util.h

Issue 972473003: Strip query string before applying url mapping. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_
6 #define SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_
7
8 #include <utility>
9
10 #include "url/gurl.h"
11
12 namespace mojo {
13
14 // Returns the |url| with the query string stripped.
15 GURL StripQueryFromURL(const GURL& url);
DaveMoore 2015/03/04 14:57:07 Instead of having two methods here why not just G
qsr 2015/03/04 15:02:05 Mainly because I didn't want to have some nullptr
16
17 // Extract the query string from an URL and returns the base URL (without the
18 // query string), and the query string. If the url doesn't have a query string,
19 // it returns the url itself and an empty string.
20 std::pair<GURL, std::string> GetBaseURLAndQuery(const GURL& url);
21
22 } // namespace mojo
23
24 #endif // SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_
OLDNEW
« no previous file with comments | « shell/application_manager/application_manager.cc ('k') | shell/application_manager/query_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698