summaryrefslogtreecommitdiffstats
path: root/net/http/http_server_properties.h
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-10 19:11:39 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-10 19:11:39 +0000
commit04af25f67a8794421c0533927e15e595d11fe9b2 (patch)
treeab31e76ed237cdda8a6a65e9d0a42fa4f9a7867a /net/http/http_server_properties.h
parent9603fa7f011a3a6fddd9df0f02b92aa1bd279024 (diff)
downloadchromium_src-04af25f67a8794421c0533927e15e595d11fe9b2.zip
chromium_src-04af25f67a8794421c0533927e15e595d11fe9b2.tar.gz
chromium_src-04af25f67a8794421c0533927e15e595d11fe9b2.tar.bz2
Persist the alternate protocol as a string not an int to allow the enum to be changed without affecting persisted values.
BUG=121967 TEST=HttpServerPropertiesManagerTest.* Review URL: http://codereview.chromium.org/10006047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_server_properties.h')
-rw-r--r--net/http/http_server_properties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index ea80eee..db47a9f 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -24,6 +24,10 @@ enum AlternateProtocol {
UNINITIALIZED_ALTERNATE_PROTOCOL,
};
+NET_EXPORT const char* AlternateProtocolToString(AlternateProtocol protocol);
+NET_EXPORT AlternateProtocol AlternateProtocolFromString(
+ const std::string& protocol);
+
struct NET_EXPORT PortAlternateProtocolPair {
bool Equals(const PortAlternateProtocolPair& other) const {
return port == other.port && protocol == other.protocol;