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

Unified Diff: chrome/browser/android/url_sanitize_utils.h

Issue 646333002: Update EscapeExternalHandlerValue to keep '#', '[', and ']' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sanitize fragment and path Created 6 years, 2 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
Index: chrome/browser/android/url_sanitize_utils.h
diff --git a/chrome/browser/android/url_sanitize_utils.h b/chrome/browser/android/url_sanitize_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..91a272df83d2a73d5476088ebdcbfa6b32fe03af
--- /dev/null
+++ b/chrome/browser/android/url_sanitize_utils.h
@@ -0,0 +1,21 @@
+// Copyright 2014 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 CHROME_BROWSER_ANDROID_URL_SANITIZE_UTILS_H_
+#define CHROME_BROWSER_ANDROID_URL_SANITIZE_UTILS_H_
+
+#include "url/gurl.h"
+
+namespace chrome {
+namespace android {
+
+// Sanitizes a query part of |url|.
+// This function escapes characters in a query part of |url| suitable for use as
+// a URI query part. See RFC 2396 for the list of reserved characters.
asanka 2014/10/14 16:46:03 * Mention that this function escapes all but the s
Jaekyun Seok (inactive) 2014/10/15 08:02:25 Done.
+GURL SanitizeUrl(const GURL& url);
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_URL_SANITIZE_UTILS_H_
« no previous file with comments | « no previous file | chrome/browser/android/url_sanitize_utils.cc » ('j') | chrome/browser/android/url_sanitize_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698