OLD | NEW |
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 virtual const AlternativeServiceMap& alternative_service_map() const = 0; | 272 virtual const AlternativeServiceMap& alternative_service_map() const = 0; |
273 | 273 |
274 // Returns all alternative service mappings as human readable strings. | 274 // Returns all alternative service mappings as human readable strings. |
275 virtual base::Value* GetAlternativeServiceInfoAsValue() const = 0; | 275 virtual base::Value* GetAlternativeServiceInfoAsValue() const = 0; |
276 | 276 |
277 // Sets the threshold to be used when evaluating alternative service | 277 // Sets the threshold to be used when evaluating alternative service |
278 // advertisments. Only advertisements with a probability greater than or equal | 278 // advertisments. Only advertisements with a probability greater than or equal |
279 // to |threshold| will be honored. |threshold| must be between 0.0 and 1.0 | 279 // to |threshold| will be honored. |threshold| must be between 0.0 and 1.0 |
280 // inclusive. Hence, a threshold of 0.0 implies that all advertisements will | 280 // inclusive. Hence, a threshold of 0.0 implies that all advertisements will |
281 // be honored. | 281 // be honored. |
282 virtual void SetAlternateProtocolProbabilityThreshold( | 282 virtual void SetAlternativeServiceProbabilityThreshold(double threshold) = 0; |
283 double threshold) = 0; | |
284 | 283 |
285 // Gets a reference to the SettingsMap stored for a host. | 284 // Gets a reference to the SettingsMap stored for a host. |
286 // If no settings are stored, returns an empty SettingsMap. | 285 // If no settings are stored, returns an empty SettingsMap. |
287 virtual const SettingsMap& GetSpdySettings( | 286 virtual const SettingsMap& GetSpdySettings( |
288 const HostPortPair& host_port_pair) = 0; | 287 const HostPortPair& host_port_pair) = 0; |
289 | 288 |
290 // Saves an individual SPDY setting for a host. Returns true if SPDY setting | 289 // Saves an individual SPDY setting for a host. Returns true if SPDY setting |
291 // is to be persisted. | 290 // is to be persisted. |
292 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, | 291 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, |
293 SpdySettingsIds id, | 292 SpdySettingsIds id, |
(...skipping 22 matching lines...) Expand all Loading... |
316 | 315 |
317 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 316 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
318 | 317 |
319 private: | 318 private: |
320 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 319 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
321 }; | 320 }; |
322 | 321 |
323 } // namespace net | 322 } // namespace net |
324 | 323 |
325 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 324 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |