Index: mojo/shell/application_manager/query_util.h |
diff --git a/mojo/shell/application_manager/query_util.h b/mojo/shell/application_manager/query_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a4ca3f7eefe33b94c27cbbf6cd77436adbc87bb3 |
--- /dev/null |
+++ b/mojo/shell/application_manager/query_util.h |
@@ -0,0 +1,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 SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_ |
+#define SHELL_APPLICATION_MANAGER_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 // SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_ |