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

Unified Diff: url/gurl.h

Issue 23064011: Consolidate scheme checks into an easy GURL method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index da5f73602e356ba0673cd1a7a1d5cf4b229285db..6c492f19810bd64ea1816a436f8b16aead4bebfc 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -203,6 +203,9 @@ class URL_EXPORT GURL {
// object constructions are done.
bool SchemeIs(const char* lower_ascii_scheme) const;
+ // Returns true if the scheme is "http" or "https".
+ bool SchemeIsHttp() const;
abarth-chromium 2013/08/19 18:10:26 SchemeIsHttpFamily? It would surprise me if a fun
Cris Neckar 2013/08/19 20:15:49 Done.
+
// We often need to know if this is a file URL. File URLs are "standard", but
// are often treated separately by some programs.
bool SchemeIsFile() const {

Powered by Google App Engine
This is Rietveld 408576698