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

Unified Diff: url/url_util.h

Issue 2644133002: Do not sanitize about:blank/#foo & about:blank?foo (Closed)
Patch Set: Addressed comments Created 3 years, 11 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 | « url/url_constants.cc ('k') | url/url_util.cc » ('j') | url/url_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_util.h
diff --git a/url/url_util.h b/url/url_util.h
index a4b74b13e5db1fe6241b4a70ce747d81fd52e67f..3559169c1d926b50c8f3bdbdd7787082db2b9934 100644
--- a/url/url_util.h
+++ b/url/url_util.h
@@ -10,6 +10,7 @@
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
+#include "url/gurl.h"
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
#include "url/url_constants.h"
@@ -152,6 +153,9 @@ URL_EXPORT bool IsReferrerScheme(const char* spec, const Component& scheme);
URL_EXPORT bool GetStandardSchemeType(const char* spec,
const Component& scheme,
SchemeType* type);
+// Check whether the url is of the form about:blank, about:blank?foo or
+// about:blank/#foo.
+URL_EXPORT bool IsAboutBlankURL(const GURL& url);
Mike West 2017/01/20 12:57:57 Nit: `IsAboutBlank` is shorter, and seems clear en
clamy 2017/01/20 13:19:28 Done.
// Hosts ----------------------------------------------------------------------
« no previous file with comments | « url/url_constants.cc ('k') | url/url_util.cc » ('j') | url/url_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698