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

Side by Side Diff: net/http/http_server_properties_impl.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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IMPL_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Sets the Alternate-Protocol for |server|. 97 // Sets the Alternate-Protocol for |server|.
98 virtual void SetAlternateProtocol( 98 virtual void SetAlternateProtocol(
99 const HostPortPair& server, 99 const HostPortPair& server,
100 uint16 alternate_port, 100 uint16 alternate_port,
101 AlternateProtocol alternate_protocol) OVERRIDE; 101 AlternateProtocol alternate_protocol) OVERRIDE;
102 102
103 // Sets the Alternate-Protocol for |server| to be BROKEN. 103 // Sets the Alternate-Protocol for |server| to be BROKEN.
104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; 104 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE;
105 105
106 // Clears the Alternate-Protocol for |server|.
107 virtual void ClearAlternateProtocol(const HostPortPair& server) OVERRIDE;
108
106 // Returns all Alternate-Protocol mappings. 109 // Returns all Alternate-Protocol mappings.
107 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; 110 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE;
108 111
109 // Gets a reference to the SettingsMap stored for a host. 112 // Gets a reference to the SettingsMap stored for a host.
110 // If no settings are stored, returns an empty SettingsMap. 113 // If no settings are stored, returns an empty SettingsMap.
111 virtual const SettingsMap& GetSpdySettings( 114 virtual const SettingsMap& GetSpdySettings(
112 const HostPortPair& host_port_pair) const OVERRIDE; 115 const HostPortPair& host_port_pair) const OVERRIDE;
113 116
114 // Saves an individual SPDY setting for a host. Returns true if SPDY setting 117 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
115 // is to be persisted. 118 // is to be persisted.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 CanonicalSufficList canoncial_suffixes_; 175 CanonicalSufficList canoncial_suffixes_;
173 176
174 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 177 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
175 178
176 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 179 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
177 }; 180 };
178 181
179 } // namespace net 182 } // namespace net
180 183
181 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 184 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« 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