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

Unified Diff: url/url_util.h

Issue 2644133002: Do not sanitize about:blank/#foo & about:blank?foo (Closed)
Patch Set: Added unit test 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
Index: url/url_util.h
diff --git a/url/url_util.h b/url/url_util.h
index a4b74b13e5db1fe6241b4a70ce747d81fd52e67f..65a347efda4eee961d592b958e6fdb6f10238fc4 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
Charlie Reis 2017/01/20 20:31:02 nit: Add blank line before, since this isn't direc
clamy 2017/01/23 12:26:27 Done.
+// about:blank/#foo.
+URL_EXPORT bool IsAboutBlank(const GURL& url);
// Hosts ----------------------------------------------------------------------
« no previous file with comments | « url/url_constants.cc ('k') | url/url_util.cc » ('j') | url/url_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698