| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 // ----------- | 245 // ----------- |
| 246 // Pref thread | 246 // Pref thread |
| 247 // ----------- | 247 // ----------- |
| 248 | 248 |
| 249 const scoped_refptr<base::SequencedTaskRunner> pref_task_runner_; | 249 const scoped_refptr<base::SequencedTaskRunner> pref_task_runner_; |
| 250 | 250 |
| 251 base::WeakPtr<HttpServerPropertiesManager> pref_weak_ptr_; | 251 base::WeakPtr<HttpServerPropertiesManager> pref_weak_ptr_; |
| 252 | 252 |
| 253 // Used to post cache update tasks. | 253 // Used to post cache update tasks. |
| 254 scoped_ptr<base::OneShotTimer<HttpServerPropertiesManager> > | 254 scoped_ptr<base::OneShotTimer> pref_cache_update_timer_; |
| 255 pref_cache_update_timer_; | |
| 256 | 255 |
| 257 // Used to track the spdy servers changes. | 256 // Used to track the spdy servers changes. |
| 258 PrefChangeRegistrar pref_change_registrar_; | 257 PrefChangeRegistrar pref_change_registrar_; |
| 259 PrefService* pref_service_; // Weak. | 258 PrefService* pref_service_; // Weak. |
| 260 bool setting_prefs_; | 259 bool setting_prefs_; |
| 261 const char* path_; | 260 const char* path_; |
| 262 | 261 |
| 263 // -------------- | 262 // -------------- |
| 264 // Network thread | 263 // Network thread |
| 265 // -------------- | 264 // -------------- |
| 266 | 265 |
| 267 const scoped_refptr<base::SequencedTaskRunner> network_task_runner_; | 266 const scoped_refptr<base::SequencedTaskRunner> network_task_runner_; |
| 268 | 267 |
| 269 // Used to post |prefs::kHttpServerProperties| pref update tasks. | 268 // Used to post |prefs::kHttpServerProperties| pref update tasks. |
| 270 scoped_ptr<base::OneShotTimer<HttpServerPropertiesManager> > | 269 scoped_ptr<base::OneShotTimer> network_prefs_update_timer_; |
| 271 network_prefs_update_timer_; | |
| 272 | 270 |
| 273 scoped_ptr<HttpServerPropertiesImpl> http_server_properties_impl_; | 271 scoped_ptr<HttpServerPropertiesImpl> http_server_properties_impl_; |
| 274 | 272 |
| 275 // Used to get |weak_ptr_| to self on the pref thread. | 273 // Used to get |weak_ptr_| to self on the pref thread. |
| 276 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 274 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
| 277 pref_weak_ptr_factory_; | 275 pref_weak_ptr_factory_; |
| 278 | 276 |
| 279 // Used to get |weak_ptr_| to self on the network thread. | 277 // Used to get |weak_ptr_| to self on the network thread. |
| 280 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 278 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
| 281 network_weak_ptr_factory_; | 279 network_weak_ptr_factory_; |
| 282 | 280 |
| 283 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 281 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 284 }; | 282 }; |
| 285 | 283 |
| 286 } // namespace net | 284 } // namespace net |
| 287 | 285 |
| 288 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 286 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |