OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COOKIE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_COOKIE_SETTINGS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_COOKIE_SETTINGS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_COOKIE_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 13 #include "base/prefs/public/pref_change_registrar.h" |
13 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
14 #include "chrome/browser/api/prefs/pref_change_registrar.h" | |
15 #include "chrome/browser/content_settings/host_content_settings_map.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map.h" |
16 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h" | 16 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h" |
17 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" | 17 #include "chrome/browser/profiles/refcounted_profile_keyed_service_factory.h" |
18 #include "chrome/common/content_settings.h" | 18 #include "chrome/common/content_settings.h" |
19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
20 | 20 |
21 class ContentSettingsPattern; | 21 class ContentSettingsPattern; |
22 class CookieSettingsWrapper; | 22 class CookieSettingsWrapper; |
23 class GURL; | 23 class GURL; |
24 class PrefService; | 24 class PrefService; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 PrefChangeRegistrar pref_change_registrar_; | 144 PrefChangeRegistrar pref_change_registrar_; |
145 | 145 |
146 // Used around accesses to |block_third_party_cookies_| to guarantee thread | 146 // Used around accesses to |block_third_party_cookies_| to guarantee thread |
147 // safety. | 147 // safety. |
148 mutable base::Lock lock_; | 148 mutable base::Lock lock_; |
149 | 149 |
150 bool block_third_party_cookies_; | 150 bool block_third_party_cookies_; |
151 }; | 151 }; |
152 | 152 |
153 #endif // CHROME_BROWSER_CONTENT_SETTINGS_COOKIE_SETTINGS_H_ | 153 #endif // CHROME_BROWSER_CONTENT_SETTINGS_COOKIE_SETTINGS_H_ |
OLD | NEW |