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