Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: components/content_settings/core/browser/content_settings_policy_provider.h

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROVIDE R_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROVIDE R_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROVIDE R_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROVIDE R_H_
7 7
8 // A content settings provider that takes its settings out of policies. 8 // A content settings provider that takes its settings out of policies.
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/prefs/pref_change_registrar.h"
13 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
14 #include "components/content_settings/core/browser/content_settings_observable_p rovider.h" 15 #include "components/content_settings/core/browser/content_settings_observable_p rovider.h"
15 #include "components/content_settings/core/browser/content_settings_origin_ident ifier_value_map.h" 16 #include "components/content_settings/core/browser/content_settings_origin_ident ifier_value_map.h"
16 #include "components/prefs/pref_change_registrar.h"
17 17
18 class PrefService; 18 class PrefService;
19 19
20 namespace user_prefs { 20 namespace user_prefs {
21 class PrefRegistrySyncable; 21 class PrefRegistrySyncable;
22 } 22 }
23 23
24 namespace content_settings { 24 namespace content_settings {
25 25
26 // PolicyProvider that provides managed content-settings. 26 // PolicyProvider that provides managed content-settings.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Used around accesses to the |value_map_| object to guarantee 78 // Used around accesses to the |value_map_| object to guarantee
79 // thread safety. 79 // thread safety.
80 mutable base::Lock lock_; 80 mutable base::Lock lock_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 82 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
83 }; 83 };
84 84
85 } // namespace content_settings 85 } // namespace content_settings
86 86
87 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROV IDER_H_ 87 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_POLICY_PROV IDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698