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

Side by Side Diff: chrome/browser/net/http_server_properties_manager.h

Issue 9802003: SPDY - persist SPDY settings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 net::AlternateProtocol alternate_protocol) OVERRIDE; 100 net::AlternateProtocol alternate_protocol) OVERRIDE;
101 101
102 // Sets the Alternate-Protocol for |server| to be BROKEN. 102 // Sets the Alternate-Protocol for |server| to be BROKEN.
103 virtual void SetBrokenAlternateProtocol( 103 virtual void SetBrokenAlternateProtocol(
104 const net::HostPortPair& server) OVERRIDE; 104 const net::HostPortPair& server) OVERRIDE;
105 105
106 // Returns all Alternate-Protocol mappings. 106 // Returns all Alternate-Protocol mappings.
107 virtual const net::AlternateProtocolMap& 107 virtual const net::AlternateProtocolMap&
108 alternate_protocol_map() const OVERRIDE; 108 alternate_protocol_map() const OVERRIDE;
109 109
110 // Gets a reference to the SpdySettings stored for a host. 110 // Gets a reference to the SettingsMap stored for a host.
111 // If no settings are stored, returns an empty set of settings. 111 // If no settings are stored, returns an empty SettingsMap.
112 virtual const spdy::SpdySettings& GetSpdySettings( 112 virtual const spdy::SettingsMap& GetSpdySettings(
113 const net::HostPortPair& host_port_pair) const OVERRIDE; 113 const net::HostPortPair& host_port_pair) const OVERRIDE;
114 114
115 // Saves settings for a host. Returns true if SpdySettings are persisted. 115 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
116 virtual bool SetSpdySettings( 116 // is to be persisted.
117 const net::HostPortPair& host_port_pair,
118 const spdy::SpdySettings& settings) OVERRIDE;
119
120 // Saves an individual setting for a host. Returns true if SpdySetting is
121 // persisted.
122 virtual bool SetSpdySetting( 117 virtual bool SetSpdySetting(
123 const net::HostPortPair& host_port_pair, 118 const net::HostPortPair& host_port_pair,
124 const spdy::SpdySetting& setting) OVERRIDE; 119 uint32 id,
120 const spdy::SettingsFlagsAndValue& flags_and_value) OVERRIDE;
125 121
126 // Clears all spdy_settings. 122 // Clears all SPDY settings.
127 virtual void ClearSpdySettings() OVERRIDE; 123 virtual void ClearSpdySettings() OVERRIDE;
128 124
129 // Returns all SpdySettings mappings. 125 // Returns all SPDY settings.
130 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE; 126 virtual const net::SpdySettingsMap& spdy_settings_map() const OVERRIDE;
131 127
132 virtual net::HttpPipelinedHostCapability GetPipelineCapability( 128 virtual net::HttpPipelinedHostCapability GetPipelineCapability(
133 const net::HostPortPair& origin) OVERRIDE; 129 const net::HostPortPair& origin) OVERRIDE;
134 130
135 virtual void SetPipelineCapability( 131 virtual void SetPipelineCapability(
136 const net::HostPortPair& origin, 132 const net::HostPortPair& origin,
137 net::HttpPipelinedHostCapability capability) OVERRIDE; 133 net::HttpPipelinedHostCapability capability) OVERRIDE;
138 134
139 virtual void ClearPipelineCapabilities() OVERRIDE; 135 virtual void ClearPipelineCapabilities() OVERRIDE;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 io_prefs_update_timer_; 220 io_prefs_update_timer_;
225 221
226 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 222 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
227 223
228 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 224 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
229 }; 225 };
230 226
231 } // namespace chrome_browser_net 227 } // namespace chrome_browser_net
232 228
233 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 229 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698