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

Unified 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: Follow review Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « shell/application_manager/application_manager.cc ('k') | shell/application_manager/query_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/application_manager/query_util.h
diff --git a/shell/application_manager/query_util.h b/shell/application_manager/query_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..f6dbe68dc13ae417072bf8b298d4f80563ebf792
--- /dev/null
+++ b/shell/application_manager/query_util.h
@@ -0,0 +1,21 @@
+// 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 {
+
+// 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 mojo
+
+#endif // SHELL_APPLICATION_MANAGER_QUERY_UTIL_H_
« 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