| 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/content_settings/content_settings_pref_provider.h" | 5 #include "chrome/browser/content_settings/content_settings_pref_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/auto_reset.h" | 11 #include "base/auto_reset.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
| 16 #include "base/prefs/scoped_user_pref_update.h" | 16 #include "base/prefs/scoped_user_pref_update.h" |
| 17 #include "base/time/clock.h" | 17 #include "base/time/clock.h" |
| 18 #include "base/time/default_clock.h" | 18 #include "base/time/default_clock.h" |
| 19 #include "chrome/browser/chrome_notification_types.h" | |
| 20 #include "chrome/browser/content_settings/content_settings_rule.h" | 19 #include "chrome/browser/content_settings/content_settings_rule.h" |
| 21 #include "chrome/browser/content_settings/content_settings_utils.h" | 20 #include "chrome/browser/content_settings/content_settings_utils.h" |
| 22 #include "chrome/browser/content_settings/host_content_settings_map.h" | 21 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 23 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/common/content_settings.h" | 23 #include "chrome/common/content_settings.h" |
| 25 #include "chrome/common/content_settings_pattern.h" | 24 #include "chrome/common/content_settings_pattern.h" |
| 26 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 27 #include "components/pref_registry/pref_registry_syncable.h" | 26 #include "components/pref_registry/pref_registry_syncable.h" |
| 28 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
| 29 #include "content/public/browser/notification_details.h" | |
| 30 #include "content/public/browser/notification_source.h" | |
| 31 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
| 32 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 33 | 30 |
| 34 using base::UserMetricsAction; | 31 using base::UserMetricsAction; |
| 35 using content::BrowserThread; | 32 using content::BrowserThread; |
| 36 | 33 |
| 37 namespace { | 34 namespace { |
| 38 | 35 |
| 39 typedef std::pair<std::string, std::string> StringPair; | 36 typedef std::pair<std::string, std::string> StringPair; |
| 40 typedef std::map<std::string, std::string> StringMap; | 37 typedef std::map<std::string, std::string> StringMap; |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 lock_.Acquire(); | 652 lock_.Acquire(); |
| 656 lock_.Release(); | 653 lock_.Release(); |
| 657 #endif | 654 #endif |
| 658 } | 655 } |
| 659 | 656 |
| 660 void PrefProvider::SetClockForTesting(scoped_ptr<base::Clock> clock) { | 657 void PrefProvider::SetClockForTesting(scoped_ptr<base::Clock> clock) { |
| 661 clock_ = clock.Pass(); | 658 clock_ = clock.Pass(); |
| 662 } | 659 } |
| 663 | 660 |
| 664 } // namespace content_settings | 661 } // namespace content_settings |
| OLD | NEW |