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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_POLICY_CONTENT_SETTINGS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_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 "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "chrome/browser/content_settings/content_settings_provider.h" 13 #include "chrome/browser/content_settings/content_settings_provider.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h" 14 #include "chrome/browser/prefs/pref_change_registrar.h"
15 #include "chrome/common/notification_observer.h" 15 #include "chrome/common/notification_observer.h"
16 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
17 17
18 class ContentSettingsDetails; 18 class ContentSettingsDetails;
19 class DictionaryValue; 19 class DictionaryValue;
20 class PrefService; 20 class PrefService;
21 class Profile; 21 class Profile;
22 22
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Copies of the pref data, so that we can read it on the IO thread. 60 // Copies of the pref data, so that we can read it on the IO thread.
61 ContentSettings managed_default_content_settings_; 61 ContentSettings managed_default_content_settings_;
62 62
63 Profile* profile_; 63 Profile* profile_;
64 64
65 // Whether this settings map is for an OTR session. 65 // Whether this settings map is for an OTR session.
66 bool is_off_the_record_; 66 bool is_off_the_record_;
67 67
68 // Used around accesses to the managed_default_content_settings_ object to 68 // Used around accesses to the managed_default_content_settings_ object to
69 // guarantee thread safety. 69 // guarantee thread safety.
70 mutable Lock lock_; 70 mutable base::Lock lock_;
71 71
72 PrefChangeRegistrar pref_change_registrar_; 72 PrefChangeRegistrar pref_change_registrar_;
73 NotificationRegistrar notification_registrar_; 73 NotificationRegistrar notification_registrar_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(PolicyContentSettingsProvider); 75 DISALLOW_COPY_AND_ASSIGN(PolicyContentSettingsProvider);
76 }; 76 };
77 77
78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_ 78 #endif // CHROME_BROWSER_CONTENT_SETTINGS_POLICY_CONTENT_SETTINGS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698