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

Unified Diff: url/scheme_host_port.h

Issue 1858093002: Alt-Svc 8: Change Supports SPDY list using SHP as the key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alt_svc_7
Patch Set: server pref changes Created 4 years, 8 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 | « net/spdy/spdy_session_unittest.cc ('k') | url/scheme_host_port.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/scheme_host_port.h
diff --git a/url/scheme_host_port.h b/url/scheme_host_port.h
index 47a9041e2afd8e1db1b92654b0d72cfddef9bdd4..5066b7a664e6b546179350ab6c94c1126cc95309 100644
--- a/url/scheme_host_port.h
+++ b/url/scheme_host_port.h
@@ -95,6 +95,8 @@ class URL_EXPORT SchemeHostPort {
~SchemeHostPort();
+ static SchemeHostPort FromString(const std::string& url_string);
+
// Returns the host component, in URL form. That is all IDN domain names will
// be expressed as A-Labels ('☃.net' will be returned as 'xn--n3h.net'), and
// and all IPv6 addresses will be enclosed in brackets ("[2001:db8::1]").
@@ -111,6 +113,9 @@ class URL_EXPORT SchemeHostPort {
// serialized as a unique Origin.
std::string Serialize() const;
+ // ToString() will convert the SchemeHostPort to "scheme://host:port".
+ std::string ToString() const;
+
// Two SchemeHostPort objects are "equal" iff their schemes, hosts, and ports
// are exact matches.
//
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | url/scheme_host_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698