gn: 'platform_impl' should be a group instead of component (since it has no code...
[chromium-blink-merge.git] / mojo / shell / query_util.h
bloba1f0ac77a7c4bd84581595e22dfba7cdb4c928a6
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.
5 #ifndef MOJO_SHELL_QUERY_UTIL_H_
6 #define MOJO_SHELL_QUERY_UTIL_H_
8 #include <utility>
10 #include "url/gurl.h"
12 namespace mojo {
13 namespace shell {
15 // Returns the base URL (without the query string). If |query| is not nullptr,
16 // set |*query| to the query string. If the url doesn't have a query string,
17 // |*query| is set to the empty string.
18 GURL GetBaseURLAndQuery(const GURL& url, std::string* query);
20 } // namespace shell
21 } // namespace mojo
23 #endif // MOJO_SHELL_QUERY_UTIL_H_