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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 596613002: Remove content dependencies from content settings providers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shutdown fix Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/host_content_settings_map.h
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
index dbe70c0d1338efa0a2685c37a16b9648c85e6696..665097691ee05a589b35999f2f1d8e9c4fc821e3 100644
--- a/chrome/browser/content_settings/host_content_settings_map.h
+++ b/chrome/browser/content_settings/host_content_settings_map.h
@@ -16,6 +16,7 @@
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
#include "base/prefs/pref_change_registrar.h"
+#include "base/threading/non_thread_safe.h"
#include "base/threading/platform_thread.h"
#include "base/tuple.h"
#include "chrome/browser/content_settings/content_settings_override_provider.h"
@@ -46,6 +47,7 @@ class PrefRegistrySyncable;
class HostContentSettingsMap
: public content_settings::Observer,
+ public base::NonThreadSafe,
blundell 2014/09/23 07:27:00 This is odd. base::NonThreadSafe directly above ba
Bernhard Bauer 2014/09/23 10:08:19 :D It's actually not that uncommon, it just looks
Jun Mukai 2014/09/23 20:48:44 Or simply add ThreadChecker as a field instead (as
public base::RefCountedThreadSafe<HostContentSettingsMap> {
public:
enum ProviderType {

Powered by Google App Engine
This is Rietveld 408576698