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

Unified Diff: url/gurl.h

Issue 23835019: Support URL fragment resolution againt non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually restore PS4 this time Created 7 years, 1 month 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 | « net/base/net_util_unittest.cc ('k') | url/gurl.cc » ('j') | url/gurl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index d4ea10fbcf09ccf43461c9b801393092d79e0b30..2151cd052182c61a33435211621d73ef25a87f2f 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -355,6 +355,17 @@ class URL_EXPORT GURL {
}
private:
+ // Variant of the string parsing constructor that allows the caller to elect
+ // retain trailing whitespace, if any, on the passed URL spec but only if the
+ // scheme is one that allows trailing whitespace. The primary use-case is
+ // for data: URLs. In most cases, you want to use the single parameter
+ // constructor above.
+ enum RetainWhiteSpaceSelector { RETAIN_TRAILING_PATH_WHITEPACE };
+ GURL(const std::string& url_string, RetainWhiteSpaceSelector);
+
+ template<typename STR>
+ void InitCanonical(const STR& input_spec,
brettw 2013/11/20 00:03:51 One line since it fits.
joth 2013/11/21 00:08:45 Done.
+ bool trim_path_end);
void InitializeFromCanonicalSpec();
// Returns the substring of the input identified by the given component.
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | url/gurl.cc » ('j') | url/gurl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698