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

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

Issue 182383016: HttpServerProperties - Implement MRU for AlternateProtocolMap. Persist (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Increment the iterator before calling Erase Created 6 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Sets the Alternate-Protocol for |server|. 108 // Sets the Alternate-Protocol for |server|.
109 virtual void SetAlternateProtocol( 109 virtual void SetAlternateProtocol(
110 const net::HostPortPair& server, 110 const net::HostPortPair& server,
111 uint16 alternate_port, 111 uint16 alternate_port,
112 net::AlternateProtocol alternate_protocol) OVERRIDE; 112 net::AlternateProtocol alternate_protocol) OVERRIDE;
113 113
114 // Sets the Alternate-Protocol for |server| to be BROKEN. 114 // Sets the Alternate-Protocol for |server| to be BROKEN.
115 virtual void SetBrokenAlternateProtocol( 115 virtual void SetBrokenAlternateProtocol(
116 const net::HostPortPair& server) OVERRIDE; 116 const net::HostPortPair& server) OVERRIDE;
117 117
118 // Returns all Alternate-Protocol mappings. 118 virtual net::AlternateProtocolMap GetAlternateProtocolMap() const OVERRIDE;
119 virtual const net::AlternateProtocolMap&
120 alternate_protocol_map() const OVERRIDE;
121 119
122 // Gets a reference to the SettingsMap stored for a host. 120 // Gets a reference to the SettingsMap stored for a host.
123 // If no settings are stored, returns an empty SettingsMap. 121 // If no settings are stored, returns an empty SettingsMap.
124 virtual const net::SettingsMap& GetSpdySettings( 122 virtual const net::SettingsMap& GetSpdySettings(
125 const net::HostPortPair& host_port_pair) const OVERRIDE; 123 const net::HostPortPair& host_port_pair) const OVERRIDE;
126 124
127 // Saves an individual SPDY setting for a host. Returns true if SPDY setting 125 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
128 // is to be persisted. 126 // is to be persisted.
129 virtual bool SetSpdySetting(const net::HostPortPair& host_port_pair, 127 virtual bool SetSpdySetting(const net::HostPortPair& host_port_pair,
130 net::SpdySettingsIds id, 128 net::SpdySettingsIds id,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 io_prefs_update_timer_; 245 io_prefs_update_timer_;
248 246
249 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 247 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
250 248
251 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 249 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
252 }; 250 };
253 251
254 } // namespace chrome_browser_net 252 } // namespace chrome_browser_net
255 253
256 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 254 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698