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

Side by Side Diff: net/http/http_server_properties.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 NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // Sets the Alternate-Protocol for |server|. 109 // Sets the Alternate-Protocol for |server|.
110 virtual void SetAlternateProtocol(const HostPortPair& server, 110 virtual void SetAlternateProtocol(const HostPortPair& server,
111 uint16 alternate_port, 111 uint16 alternate_port,
112 AlternateProtocol alternate_protocol) = 0; 112 AlternateProtocol alternate_protocol) = 0;
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(const HostPortPair& server) = 0; 115 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) = 0;
116 116
117 // Returns all Alternate-Protocol mappings. 117 // Returns all Alternate-Protocol mappings.
118 virtual const AlternateProtocolMap& alternate_protocol_map() const = 0; 118 virtual AlternateProtocolMap GetAlternateProtocolMap() const = 0;
Ryan Hamilton 2014/03/05 00:19:20 I'm sure that this is somehow related to the chang
ramant (doing other things) 2014/03/05 15:11:11 Undid this change. Changed code to return MRUCache
119 119
120 // Gets a reference to the SettingsMap stored for a host. 120 // Gets a reference to the SettingsMap stored for a host.
121 // If no settings are stored, returns an empty SettingsMap. 121 // If no settings are stored, returns an empty SettingsMap.
122 virtual const SettingsMap& GetSpdySettings( 122 virtual const SettingsMap& GetSpdySettings(
123 const HostPortPair& host_port_pair) const = 0; 123 const HostPortPair& host_port_pair) const = 0;
124 124
125 // 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
126 // is to be persisted. 126 // is to be persisted.
127 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, 127 virtual bool SetSpdySetting(const HostPortPair& host_port_pair,
128 SpdySettingsIds id, 128 SpdySettingsIds id,
(...skipping 26 matching lines...) Expand all
155 155
156 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; 156 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0;
157 157
158 private: 158 private:
159 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 159 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
160 }; 160 };
161 161
162 } // namespace net 162 } // namespace net
163 163
164 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 164 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698