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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ |
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_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/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/prefs/pref_change_registrar.h" |
13 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
14 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
15 #include "components/content_settings/core/browser/host_content_settings_map.h" | 16 #include "components/content_settings/core/browser/host_content_settings_map.h" |
16 #include "components/content_settings/core/common/content_settings.h" | 17 #include "components/content_settings/core/common/content_settings.h" |
17 #include "components/keyed_service/core/refcounted_keyed_service.h" | 18 #include "components/keyed_service/core/refcounted_keyed_service.h" |
18 #include "components/prefs/pref_change_registrar.h" | |
19 | 19 |
20 class ContentSettingsPattern; | 20 class ContentSettingsPattern; |
21 class GURL; | 21 class GURL; |
22 class PrefService; | 22 class PrefService; |
23 | 23 |
24 namespace content_settings { | 24 namespace content_settings { |
25 | 25 |
26 // A frontend to the cookie settings of |HostContentSettingsMap|. Handles | 26 // A frontend to the cookie settings of |HostContentSettingsMap|. Handles |
27 // cookie-specific logic such as blocking third-party cookies. Written on the UI | 27 // cookie-specific logic such as blocking third-party cookies. Written on the UI |
28 // thread and read on any thread. | 28 // thread and read on any thread. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 mutable base::Lock lock_; | 126 mutable base::Lock lock_; |
127 | 127 |
128 bool block_third_party_cookies_; | 128 bool block_third_party_cookies_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(CookieSettings); | 130 DISALLOW_COPY_AND_ASSIGN(CookieSettings); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace content_settings | 133 } // namespace content_settings |
134 | 134 |
135 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ | 135 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ |
OLD | NEW |