summaryrefslogtreecommitdiffstats
path: root/mojo/shell/query_util.h
blob: a1f0ac77a7c4bd84581595e22dfba7cdb4c928a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MOJO_SHELL_QUERY_UTIL_H_
#define MOJO_SHELL_QUERY_UTIL_H_

#include <utility>

#include "url/gurl.h"

namespace mojo {
namespace shell {

// Returns the base URL (without the query string). If |query| is not nullptr,
// set |*query| to the query string.  If the url doesn't have a query string,
// |*query| is set to the empty string.
GURL GetBaseURLAndQuery(const GURL& url, std::string* query);

}  // namespace shell
}  // namespace mojo

#endif  // MOJO_SHELL_QUERY_UTIL_H_