OLD | NEW |
---|---|
(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_ | |
OLD | NEW |