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

Unified Diff: net/http/http_server_properties.h

Issue 10006047: Persist the alternate protocol as a string not an int to allow the enum to be changed without affec… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 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
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index e61be5eb4abaac9e54879eca0cb033b9dcadcd47..50f95eb9d21c87ae63b0182ca1f8d3005bdd55b8 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -25,6 +25,9 @@ enum AlternateProtocol {
UNINITIALIZED_ALTERNATE_PROTOCOL,
};
+const char* AlternateProtocolToString(AlternateProtocol protocol);
+AlternateProtocol AlternateProtocolFromString(const std::string& protocol);
+
struct NET_EXPORT PortAlternateProtocolPair {
bool Equals(const PortAlternateProtocolPair& other) const {
return port == other.port && protocol == other.protocol;

Powered by Google App Engine
This is Rietveld 408576698