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

Unified Diff: net/http/http_server_properties_impl.h

Issue 8423028: Persist dynamically learned SPDY settings (like CWND). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_impl.h
===================================================================
--- net/http/http_server_properties_impl.h (revision 110097)
+++ net/http/http_server_properties_impl.h (working copy)
@@ -5,6 +5,7 @@
#ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
#define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
+#include <map>
#include <string>
#include <vector>
@@ -39,6 +40,8 @@
void InitializeAlternateProtocolServers(
AlternateProtocolMap* alternate_protocol_servers);
+ void InitializeSpdySettingsServers(SpdySettingsMap* spdy_settings_map);
+
// Get the list of servers (host/port) that support SPDY.
void GetSpdyServerList(base::ListValue* spdy_server_list) const;
@@ -87,6 +90,22 @@
// Returns all Alternate-Protocol mappings.
virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE;
+ // Gets a reference to the SpdySettings stored for a host.
+ // If no settings are stored, returns an empty set of settings.
+ virtual const spdy::SpdySettings& GetSpdySettings(
+ const HostPortPair& host_port_pair) const OVERRIDE;
+
+ // Saves settings for a host. Returns true if SpdySettings are to be
+ // persisted because |spdy_settings_map_| has been updated.
+ virtual bool SetSpdySettings(const HostPortPair& host_port_pair,
+ const spdy::SpdySettings& settings) OVERRIDE;
+
+ // Clears all spdy_settings.
+ virtual void ClearSpdySettings() OVERRIDE;
+
+ // Returns all persistent SpdySettings.
+ virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE;
+
private:
// |spdy_servers_table_| has flattened representation of servers (host/port
// pair) that either support or not support SPDY protocol.
@@ -94,6 +113,7 @@
SpdyServerHostPortTable spdy_servers_table_;
AlternateProtocolMap alternate_protocol_map_;
+ SpdySettingsMap spdy_settings_map_;
DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
};
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698