OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Maps hostnames to custom content settings. Written on the UI thread and read | 5 // Maps hostnames to custom content settings. Written on the UI thread and read |
6 // on any thread. One instance per profile. | 6 // on any thread. One instance per profile. |
7 | 7 |
8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 8 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |
9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 9 #define CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/linked_ptr.h" | 18 #include "base/linked_ptr.h" |
19 #include "base/ref_counted.h" | 19 #include "base/ref_counted.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "chrome/browser/browser_thread.h" | |
22 #include "chrome/browser/content_settings/content_settings_pattern.h" | 21 #include "chrome/browser/content_settings/content_settings_pattern.h" |
23 #include "chrome/browser/prefs/pref_change_registrar.h" | 22 #include "chrome/browser/prefs/pref_change_registrar.h" |
24 #include "chrome/common/content_settings.h" | 23 #include "chrome/common/content_settings.h" |
25 #include "chrome/common/notification_observer.h" | 24 #include "chrome/common/notification_observer.h" |
26 #include "chrome/common/notification_registrar.h" | 25 #include "chrome/common/notification_registrar.h" |
| 26 #include "content/browser/browser_thread.h" |
27 | 27 |
28 namespace content_settings { | 28 namespace content_settings { |
29 class DefaultProviderInterface; | 29 class DefaultProviderInterface; |
30 class ProviderInterface; | 30 class ProviderInterface; |
31 } // namespace content_settings | 31 } // namespace content_settings |
32 | 32 |
33 class ContentSettingsDetails; | 33 class ContentSettingsDetails; |
34 class DictionaryValue; | 34 class DictionaryValue; |
35 class GURL; | 35 class GURL; |
36 class PrefService; | 36 class PrefService; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 // Misc global settings. | 212 // Misc global settings. |
213 bool block_third_party_cookies_; | 213 bool block_third_party_cookies_; |
214 bool is_block_third_party_cookies_managed_; | 214 bool is_block_third_party_cookies_managed_; |
215 bool block_nonsandboxed_plugins_; | 215 bool block_nonsandboxed_plugins_; |
216 | 216 |
217 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); | 217 DISALLOW_COPY_AND_ASSIGN(HostContentSettingsMap); |
218 }; | 218 }; |
219 | 219 |
220 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ | 220 #endif // CHROME_BROWSER_CONTENT_SETTINGS_HOST_CONTENT_SETTINGS_MAP_H_ |
OLD | NEW |