| 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 #include "net/http/http_server_properties_manager.h" | 5 #include "net/http/http_server_properties_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "net/base/ip_address.h" | 15 #include "net/base/ip_address.h" |
| 16 #include "net/base/port_util.h" | 16 #include "net/base/port_util.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Time to wait before starting an update the http_server_properties_impl_ cache | 23 // Time to wait before starting an update the http_server_properties_impl_ cache |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 quic_servers_dict); | 1263 quic_servers_dict); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { | 1266 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { |
| 1267 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread()); | 1267 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread()); |
| 1268 if (!setting_prefs_) | 1268 if (!setting_prefs_) |
| 1269 ScheduleUpdateCacheOnPrefThread(); | 1269 ScheduleUpdateCacheOnPrefThread(); |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 } // namespace net | 1272 } // namespace net |
| OLD | NEW |