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

Side by Side Diff: chrome/browser/content_settings/content_settings_policy_provider.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
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 CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 // A content settings provider that takes its settings out of policies. 9 // A content settings provider that takes its settings out of policies.
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/tuple.h" 15 #include "base/tuple.h"
16 #include "chrome/browser/content_settings/content_settings_origin_identifier_val ue_map.h" 16 #include "chrome/browser/content_settings/content_settings_origin_identifier_val ue_map.h"
17 #include "chrome/browser/content_settings/content_settings_provider.h" 17 #include "chrome/browser/content_settings/content_settings_provider.h"
18 #include "chrome/browser/prefs/pref_change_registrar.h" 18 #include "chrome/browser/prefs/pref_change_registrar.h"
19 #include "content/common/notification_observer.h" 19 #include "content/common/notification_observer.h"
20 #include "content/common/notification_registrar.h" 20 #include "content/common/notification_registrar.h"
21 21
22 class ContentSettingsDetails; 22 class ContentSettingsDetails;
23 class DictionaryValue;
24 class HostContentSettingsMap; 23 class HostContentSettingsMap;
25 class PrefService; 24 class PrefService;
26 25
27 namespace content_settings { 26 namespace content_settings {
28 27
29 class PolicyDefaultProvider : public DefaultProviderInterface, 28 class PolicyDefaultProvider : public DefaultProviderInterface,
30 public NotificationObserver { 29 public NotificationObserver {
31 public: 30 public:
32 PolicyDefaultProvider(HostContentSettingsMap* map, PrefService* prefs); 31 PolicyDefaultProvider(HostContentSettingsMap* map, PrefService* prefs);
33 virtual ~PolicyDefaultProvider(); 32 virtual ~PolicyDefaultProvider();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Used around accesses to the content_settings_ object to guarantee 145 // Used around accesses to the content_settings_ object to guarantee
147 // thread safety. 146 // thread safety.
148 mutable base::Lock lock_; 147 mutable base::Lock lock_;
149 148
150 DISALLOW_COPY_AND_ASSIGN(PolicyProvider); 149 DISALLOW_COPY_AND_ASSIGN(PolicyProvider);
151 }; 150 };
152 151
153 } // namespace content_settings 152 } // namespace content_settings
154 153
155 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_ 154 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_POLICY_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698