Chromium Code Reviews| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 768 // preferences. | 768 // preferences. |
| 769 UMA_HISTOGRAM_COUNTS("Net.CountOfAlternateProtocolServers", | 769 UMA_HISTOGRAM_COUNTS("Net.CountOfAlternateProtocolServers", |
| 770 alternative_service_map->size()); | 770 alternative_service_map->size()); |
| 771 http_server_properties_impl_->SetAlternativeServiceServers( | 771 http_server_properties_impl_->SetAlternativeServiceServers( |
| 772 alternative_service_map); | 772 alternative_service_map); |
| 773 | 773 |
| 774 http_server_properties_impl_->SetSupportsQuic(last_quic_address); | 774 http_server_properties_impl_->SetSupportsQuic(last_quic_address); |
| 775 | 775 |
| 776 http_server_properties_impl_->SetServerNetworkStats(server_network_stats_map); | 776 http_server_properties_impl_->SetServerNetworkStats(server_network_stats_map); |
| 777 | 777 |
| 778 UMA_HISTOGRAM_COUNTS("Net.CountOfQuicServerInfos", | |
|
Alexei Svitkine (slow)
2017/02/23 18:23:41
Nit: We now recommend to use UMA_HISTOGRAM_COUNTS_
Zhongyi Shi
2017/02/23 20:36:22
Done.
| |
| 779 quic_server_info_map->size()); | |
| 780 | |
| 778 http_server_properties_impl_->SetQuicServerInfoMap(quic_server_info_map); | 781 http_server_properties_impl_->SetQuicServerInfoMap(quic_server_info_map); |
| 779 | 782 |
| 780 // Update the prefs with what we have read (delete all corrupted prefs). | 783 // Update the prefs with what we have read (delete all corrupted prefs). |
| 781 if (detected_corrupted_prefs) | 784 if (detected_corrupted_prefs) |
| 782 ScheduleUpdatePrefsOnNetworkThread(DETECTED_CORRUPTED_PREFS); | 785 ScheduleUpdatePrefsOnNetworkThread(DETECTED_CORRUPTED_PREFS); |
| 783 } | 786 } |
| 784 | 787 |
| 785 // | 788 // |
| 786 // Update Preferences with data from the cached data. | 789 // Update Preferences with data from the cached data. |
| 787 // | 790 // |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1122 if (!setting_prefs_) | 1125 if (!setting_prefs_) |
| 1123 ScheduleUpdateCacheOnPrefThread(); | 1126 ScheduleUpdateCacheOnPrefThread(); |
| 1124 } | 1127 } |
| 1125 | 1128 |
| 1126 void HttpServerPropertiesManager::SetInitialized() { | 1129 void HttpServerPropertiesManager::SetInitialized() { |
| 1127 DCHECK(network_task_runner_->RunsTasksOnCurrentThread()); | 1130 DCHECK(network_task_runner_->RunsTasksOnCurrentThread()); |
| 1128 is_initialized_ = true; | 1131 is_initialized_ = true; |
| 1129 } | 1132 } |
| 1130 | 1133 |
| 1131 } // namespace net | 1134 } // namespace net |
| OLD | NEW |