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

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

Issue 615083004: Use ThreadChecker rather than DCHECK_CURRENTLY_ON. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK testing_profile Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OVERRIDE_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_OVERRIDE_PROVIDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_OVERRIDE_PROVIDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_OVERRIDE_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h"
10 #include "components/content_settings/core/browser/content_settings_provider.h" 11 #include "components/content_settings/core/browser/content_settings_provider.h"
11 #include "components/content_settings/core/common/content_settings_types.h" 12 #include "components/content_settings/core/common/content_settings_types.h"
12 13
13 class ContentSettingsPattern; 14 class ContentSettingsPattern;
14 class PrefService; 15 class PrefService;
15 16
16 namespace user_prefs { 17 namespace user_prefs {
17 class PrefRegistrySyncable; 18 class PrefRegistrySyncable;
18 } 19 }
19 20
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool allowed_settings_[CONTENT_SETTINGS_NUM_TYPES]; 62 bool allowed_settings_[CONTENT_SETTINGS_NUM_TYPES];
62 63
63 PrefService* prefs_; 64 PrefService* prefs_;
64 65
65 bool is_incognito_; 66 bool is_incognito_;
66 67
67 // Used around accesses to the |override_content_settings_| object to 68 // Used around accesses to the |override_content_settings_| object to
68 // guarantee thread safety. 69 // guarantee thread safety.
69 mutable base::Lock lock_; 70 mutable base::Lock lock_;
70 71
72 base::ThreadChecker thread_checker_;
73
71 DISALLOW_COPY_AND_ASSIGN(OverrideProvider); 74 DISALLOW_COPY_AND_ASSIGN(OverrideProvider);
72 }; 75 };
73 76
74 } // namespace content_settings 77 } // namespace content_settings
75 78
76 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_OVERRIDE_PROVIDER_H_ 79 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_OVERRIDE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698