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 #include "chrome/browser/net/http_server_properties_manager.h" | 4 #include "chrome/browser/net/http_server_properties_manager.h" |
5 | 5 |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/prefs/pref_service.h" |
7 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
8 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
10 #include "base/values.h" | 11 #include "base/values.h" |
11 #include "chrome/browser/prefs/pref_registry_syncable.h" | 12 #include "chrome/browser/prefs/pref_registry_syncable.h" |
12 #include "chrome/browser/prefs/pref_service.h" | |
13 #include "chrome/common/chrome_notification_types.h" | 13 #include "chrome/common/chrome_notification_types.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/notification_details.h" | 16 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace chrome_browser_net { | 21 namespace chrome_browser_net { |
22 | 22 |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 completion.Run(); | 661 completion.Run(); |
662 } | 662 } |
663 | 663 |
664 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { | 664 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { |
665 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 665 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
666 if (!setting_prefs_) | 666 if (!setting_prefs_) |
667 ScheduleUpdateCacheOnUI(); | 667 ScheduleUpdateCacheOnUI(); |
668 } | 668 } |
669 | 669 |
670 } // namespace chrome_browser_net | 670 } // namespace chrome_browser_net |
OLD | NEW |