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

Unified Diff: net/http/http_alternate_protocols.h

Issue 6465001: Display more information at chrome://net-internals/#spdy... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « chrome/browser/resources/net_internals/spdyview.js ('k') | net/http/http_alternate_protocols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_alternate_protocols.h
===================================================================
--- net/http/http_alternate_protocols.h (revision 74346)
+++ net/http/http_alternate_protocols.h (working copy)
@@ -34,10 +34,14 @@
return port == other.port && protocol == other.protocol;
}
+ std::string ToString() const;
+
uint16 port;
Protocol protocol;
};
+ typedef std::map<HostPortPair, PortProtocolPair> ProtocolMap;
+
static const char kHeader[];
static const char* const kProtocolStrings[NUM_ALTERNATE_PROTOCOLS];
@@ -64,6 +68,8 @@
// attempts to set the alternate protocol for |http_host_port_pair| will fail.
void MarkBrokenAlternateProtocolFor(const HostPortPair& http_host_port_pair);
+ const ProtocolMap& protocol_map() const { return protocol_map_; }
+
// Debugging to simulate presence of an AlternateProtocol.
// If we don't have an alternate protocol in the map for any given host/port
// pair, force this ProtocolPortPair.
@@ -71,10 +77,10 @@
static void DisableForcedAlternateProtocol();
private:
- typedef std::map<HostPortPair, PortProtocolPair> ProtocolMap;
-
ProtocolMap protocol_map_;
+ static const char* ProtocolToString(Protocol protocol);
+
// The forced alternate protocol. If not-null, there is a protocol being
// forced.
static PortProtocolPair* forced_alternate_protocol_;
« no previous file with comments | « chrome/browser/resources/net_internals/spdyview.js ('k') | net/http/http_alternate_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698