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 #include "chrome/browser/net/http_server_properties_manager.h" | 5 #include "chrome/browser/net/http_server_properties_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.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/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "components/user_prefs/pref_registry_syncable.h" | 16 #include "components/pref_registry/pref_registry_syncable.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace chrome_browser_net { | 23 namespace chrome_browser_net { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 completion.Run(); | 742 completion.Run(); |
743 } | 743 } |
744 | 744 |
745 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { | 745 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { |
746 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 746 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
747 if (!setting_prefs_) | 747 if (!setting_prefs_) |
748 ScheduleUpdateCacheOnUI(); | 748 ScheduleUpdateCacheOnUI(); |
749 } | 749 } |
750 | 750 |
751 } // namespace chrome_browser_net | 751 } // namespace chrome_browser_net |
OLD | NEW |