| 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_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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <deque> | 11 #include <deque> |
| 9 #include <map> | 12 #include <map> |
| 10 #include <set> | 13 #include <set> |
| 11 #include <string> | 14 #include <string> |
| 12 #include <vector> | 15 #include <vector> |
| 13 | 16 |
| 14 #include "base/basictypes.h" | |
| 15 #include "base/containers/hash_tables.h" | 17 #include "base/containers/hash_tables.h" |
| 18 #include "base/macros.h" |
| 16 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 17 #include "base/values.h" | 20 #include "base/values.h" |
| 18 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
| 19 #include "net/base/linked_hash_map.h" | 22 #include "net/base/linked_hash_map.h" |
| 20 #include "net/base/net_export.h" | 23 #include "net/base/net_export.h" |
| 21 #include "net/http/http_server_properties.h" | 24 #include "net/http/http_server_properties.h" |
| 22 | 25 |
| 23 namespace base { | 26 namespace base { |
| 24 class ListValue; | 27 class ListValue; |
| 25 } | 28 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const AlternativeService& alternative_service) override; | 112 const AlternativeService& alternative_service) override; |
| 110 void ClearAlternativeServices(const HostPortPair& origin) override; | 113 void ClearAlternativeServices(const HostPortPair& origin) override; |
| 111 const AlternativeServiceMap& alternative_service_map() const override; | 114 const AlternativeServiceMap& alternative_service_map() const override; |
| 112 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; | 115 scoped_ptr<base::Value> GetAlternativeServiceInfoAsValue() const override; |
| 113 void SetAlternativeServiceProbabilityThreshold(double threshold) override; | 116 void SetAlternativeServiceProbabilityThreshold(double threshold) override; |
| 114 const SettingsMap& GetSpdySettings( | 117 const SettingsMap& GetSpdySettings( |
| 115 const HostPortPair& host_port_pair) override; | 118 const HostPortPair& host_port_pair) override; |
| 116 bool SetSpdySetting(const HostPortPair& host_port_pair, | 119 bool SetSpdySetting(const HostPortPair& host_port_pair, |
| 117 SpdySettingsIds id, | 120 SpdySettingsIds id, |
| 118 SpdySettingsFlags flags, | 121 SpdySettingsFlags flags, |
| 119 uint32 value) override; | 122 uint32_t value) override; |
| 120 void ClearSpdySettings(const HostPortPair& host_port_pair) override; | 123 void ClearSpdySettings(const HostPortPair& host_port_pair) override; |
| 121 void ClearAllSpdySettings() override; | 124 void ClearAllSpdySettings() override; |
| 122 const SpdySettingsMap& spdy_settings_map() const override; | 125 const SpdySettingsMap& spdy_settings_map() const override; |
| 123 bool GetSupportsQuic(IPAddressNumber* last_address) const override; | 126 bool GetSupportsQuic(IPAddressNumber* last_address) const override; |
| 124 void SetSupportsQuic(bool used_quic, const IPAddressNumber& address) override; | 127 void SetSupportsQuic(bool used_quic, const IPAddressNumber& address) override; |
| 125 void SetServerNetworkStats(const HostPortPair& host_port_pair, | 128 void SetServerNetworkStats(const HostPortPair& host_port_pair, |
| 126 ServerNetworkStats stats) override; | 129 ServerNetworkStats stats) override; |
| 127 const ServerNetworkStats* GetServerNetworkStats( | 130 const ServerNetworkStats* GetServerNetworkStats( |
| 128 const HostPortPair& host_port_pair) override; | 131 const HostPortPair& host_port_pair) override; |
| 129 const ServerNetworkStatsMap& server_network_stats_map() const override; | 132 const ServerNetworkStatsMap& server_network_stats_map() const override; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 QuicServerInfoMap quic_server_info_map_; | 189 QuicServerInfoMap quic_server_info_map_; |
| 187 | 190 |
| 188 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; | 191 base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_; |
| 189 | 192 |
| 190 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); | 193 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl); |
| 191 }; | 194 }; |
| 192 | 195 |
| 193 } // namespace net | 196 } // namespace net |
| 194 | 197 |
| 195 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ | 198 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_IMPL_H_ |
| OLD | NEW |