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

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

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « net/http/http_server_properties.cc ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Confirms that Alternate-Protocol for |server| is working. 103 // Confirms that Alternate-Protocol for |server| is working.
104 void ConfirmAlternateProtocol(const HostPortPair& server) override; 104 void ConfirmAlternateProtocol(const HostPortPair& server) override;
105 105
106 // Clears the Alternate-Protocol for |server|. 106 // Clears the Alternate-Protocol for |server|.
107 void ClearAlternateProtocol(const HostPortPair& server) override; 107 void ClearAlternateProtocol(const HostPortPair& server) override;
108 108
109 // Returns all Alternate-Protocol mappings. 109 // Returns all Alternate-Protocol mappings.
110 const AlternateProtocolMap& alternate_protocol_map() const override; 110 const AlternateProtocolMap& alternate_protocol_map() const override;
111 111
112 void SetAlternateProtocolExperiment(
113 AlternateProtocolExperiment experiment) override;
114
115 void SetAlternateProtocolProbabilityThreshold(double threshold) override; 112 void SetAlternateProtocolProbabilityThreshold(double threshold) override;
116 113
117 AlternateProtocolExperiment GetAlternateProtocolExperiment() const override;
118
119 // Gets a reference to the SettingsMap stored for a host. 114 // Gets a reference to the SettingsMap stored for a host.
120 // If no settings are stored, returns an empty SettingsMap. 115 // If no settings are stored, returns an empty SettingsMap.
121 const SettingsMap& GetSpdySettings( 116 const SettingsMap& GetSpdySettings(
122 const HostPortPair& host_port_pair) override; 117 const HostPortPair& host_port_pair) override;
123 118
124 // Saves an individual SPDY setting for a host. Returns true if SPDY setting 119 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
125 // is to be persisted. 120 // is to be persisted.
126 bool SetSpdySetting(const HostPortPair& host_port_pair, 121 bool SetSpdySetting(const HostPortPair& host_port_pair,
127 SpdySettingsIds id, 122 SpdySettingsIds id,
128 SpdySettingsFlags flags, 123 SpdySettingsFlags flags,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 172
178 void RemoveCanonicalHost(const HostPortPair& server); 173 void RemoveCanonicalHost(const HostPortPair& server);
179 void ExpireBrokenAlternateProtocolMappings(); 174 void ExpireBrokenAlternateProtocolMappings();
180 void ScheduleBrokenAlternateProtocolMappingsExpiration(); 175 void ScheduleBrokenAlternateProtocolMappingsExpiration();
181 176
182 SpdyServerHostPortMap spdy_servers_map_; 177 SpdyServerHostPortMap spdy_servers_map_;
183 178
184 AlternateProtocolMap alternate_protocol_map_; 179 AlternateProtocolMap alternate_protocol_map_;
185 BrokenAlternateProtocolList broken_alternate_protocol_list_; 180 BrokenAlternateProtocolList broken_alternate_protocol_list_;
186 BrokenAlternateProtocolMap broken_alternate_protocol_map_; 181 BrokenAlternateProtocolMap broken_alternate_protocol_map_;
187 AlternateProtocolExperiment alternate_protocol_experiment_;
188 182
189 SpdySettingsMap spdy_settings_map_; 183 SpdySettingsMap spdy_settings_map_;
190 SupportsQuicMap supports_quic_map_; 184 SupportsQuicMap supports_quic_map_;
191 ServerNetworkStatsMap server_network_stats_map_; 185 ServerNetworkStatsMap server_network_stats_map_;
192 // Contains a map of servers which could share the same alternate protocol. 186 // Contains a map of servers which could share the same alternate protocol.
193 // Map from a Canonical host/port (host is some postfix of host names) to an 187 // Map from a Canonical host/port (host is some postfix of host names) to an
194 // actual origin, which has a plausible alternate protocol mapping. 188 // actual origin, which has a plausible alternate protocol mapping.
195 CanonicalHostMap canonical_host_to_origin_map_; 189 CanonicalHostMap canonical_host_to_origin_map_;
196 // Contains list of suffixes (for exmaple ".c.youtube.com", 190 // Contains list of suffixes (for exmaple ".c.youtube.com",
197 // ".googlevideo.com", ".googleusercontent.com") of canoncial hostnames. 191 // ".googlevideo.com", ".googleusercontent.com") of canoncial hostnames.
198 CanonicalSufficList canoncial_suffixes_; 192 CanonicalSufficList canoncial_suffixes_;
199 193
200 double alternate_protocol_probability_threshold_; 194 double alternate_protocol_probability_threshold_;
201 195
202 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; 196 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
203 197
204 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); 198 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);
205 }; 199 };
206 200
207 } // namespace net 201 } // namespace net
208 202
209 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ 203 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties.cc ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698