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

Side by Side Diff: net/http/http_server_properties.h

Issue 187693003: Add a ClearAlternateProtocol method to HttpServerProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const HostPortPair& server) const = 0; 107 const HostPortPair& server) const = 0;
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 // Clears the Alternate-Protocol for |server|.
118 virtual void ClearAlternateProtocol(const HostPortPair& server) = 0;
119
117 // Returns all Alternate-Protocol mappings. 120 // Returns all Alternate-Protocol mappings.
118 virtual const AlternateProtocolMap& alternate_protocol_map() const = 0; 121 virtual const AlternateProtocolMap& alternate_protocol_map() const = 0;
119 122
120 // Gets a reference to the SettingsMap stored for a host. 123 // Gets a reference to the SettingsMap stored for a host.
121 // If no settings are stored, returns an empty SettingsMap. 124 // If no settings are stored, returns an empty SettingsMap.
122 virtual const SettingsMap& GetSpdySettings( 125 virtual const SettingsMap& GetSpdySettings(
123 const HostPortPair& host_port_pair) const = 0; 126 const HostPortPair& host_port_pair) const = 0;
124 127
125 // Saves an individual SPDY setting for a host. Returns true if SPDY setting 128 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
126 // is to be persisted. 129 // is to be persisted.
(...skipping 28 matching lines...) Expand all
155 158
156 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; 159 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0;
157 160
158 private: 161 private:
159 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); 162 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
160 }; 163 };
161 164
162 } // namespace net 165 } // namespace net
163 166
164 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ 167 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/http_server_properties_manager.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698