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

Unified Diff: net/http/http_alternate_protocols.h

Issue 3195015: Add option to simulate alternate protocol always being present.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « no previous file | net/http/http_alternate_protocols.cc » ('j') | net/http/http_alternate_protocols.cc » ('J')
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 57015)
+++ net/http/http_alternate_protocols.h (working copy)
@@ -63,11 +63,21 @@
// attempts to set the alternate protocol for |http_host_port_pair| will fail.
void MarkBrokenAlternateProtocolFor(const HostPortPair& http_host_port_pair);
+ // 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.
+ static void ForceAlternateProtocol(const PortProtocolPair& pair);
+ static void DisableForcedAlternateProtocol();
+
private:
typedef std::map<HostPortPair, PortProtocolPair> ProtocolMap;
ProtocolMap protocol_map_;
+ // The forced alternate protocol. If not-null, there is a protocol being
+ // forced.
+ static PortProtocolPair* forced_alternate_protocol_;
+
DISALLOW_COPY_AND_ASSIGN(HttpAlternateProtocols);
};
« no previous file with comments | « no previous file | net/http/http_alternate_protocols.cc » ('j') | net/http/http_alternate_protocols.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698