| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MANAGER_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 const ServerNetworkStatsMap& server_network_stats_map() const override; | 155 const ServerNetworkStatsMap& server_network_stats_map() const override; |
| 156 bool SetQuicServerInfo(const QuicServerId& server_id, | 156 bool SetQuicServerInfo(const QuicServerId& server_id, |
| 157 const std::string& server_info) override; | 157 const std::string& server_info) override; |
| 158 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override; | 158 const std::string* GetQuicServerInfo(const QuicServerId& server_id) override; |
| 159 const QuicServerInfoMap& quic_server_info_map() const override; | 159 const QuicServerInfoMap& quic_server_info_map() const override; |
| 160 size_t max_server_configs_stored_in_properties() const override; | 160 size_t max_server_configs_stored_in_properties() const override; |
| 161 void SetMaxServerConfigsStoredInProperties( | 161 void SetMaxServerConfigsStoredInProperties( |
| 162 size_t max_server_configs_stored_in_properties) override; | 162 size_t max_server_configs_stored_in_properties) override; |
| 163 bool IsInitialized() const override; | 163 bool IsInitialized() const override; |
| 164 | 164 |
| 165 static base::TimeDelta GetUpdateCacheDelayForTesting(); |
| 166 static base::TimeDelta GetUpdatePrefsDelayForTesting(); |
| 167 |
| 165 protected: | 168 protected: |
| 166 // The location where ScheduleUpdatePrefsOnNetworkThread was called. | 169 // The location where ScheduleUpdatePrefsOnNetworkThread was called. |
| 167 enum Location { | 170 enum Location { |
| 168 SUPPORTS_SPDY = 0, | 171 SUPPORTS_SPDY = 0, |
| 169 HTTP_11_REQUIRED = 1, | 172 HTTP_11_REQUIRED = 1, |
| 170 SET_ALTERNATIVE_SERVICES = 2, | 173 SET_ALTERNATIVE_SERVICES = 2, |
| 171 MARK_ALTERNATIVE_SERVICE_BROKEN = 3, | 174 MARK_ALTERNATIVE_SERVICE_BROKEN = 3, |
| 172 MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4, | 175 MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4, |
| 173 CONFIRM_ALTERNATIVE_SERVICE = 5, | 176 CONFIRM_ALTERNATIVE_SERVICE = 5, |
| 174 CLEAR_ALTERNATIVE_SERVICE = 6, | 177 CLEAR_ALTERNATIVE_SERVICE = 6, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Used to get |weak_ptr_| to self on the network thread. | 316 // Used to get |weak_ptr_| to self on the network thread. |
| 314 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> | 317 std::unique_ptr<base::WeakPtrFactory<HttpServerPropertiesManager>> |
| 315 network_weak_ptr_factory_; | 318 network_weak_ptr_factory_; |
| 316 | 319 |
| 317 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 320 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 318 }; | 321 }; |
| 319 | 322 |
| 320 } // namespace net | 323 } // namespace net |
| 321 | 324 |
| 322 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 325 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |