| 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 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 10 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; | 240 scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; |
| 241 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; | 241 scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 void AddBlockedResource(ContentSettingsType content_type, | 244 void AddBlockedResource(ContentSettingsType content_type, |
| 245 const std::string& resource_identifier); | 245 const std::string& resource_identifier); |
| 246 | 246 |
| 247 void OnContentAccessed(ContentSettingsType type); | 247 void OnContentAccessed(ContentSettingsType type); |
| 248 | 248 |
| 249 // NotificationObserver implementation. | 249 // NotificationObserver implementation. |
| 250 virtual void Observe(NotificationType type, | 250 virtual void Observe(int type, |
| 251 const NotificationSource& source, | 251 const NotificationSource& source, |
| 252 const NotificationDetails& details); | 252 const NotificationDetails& details); |
| 253 | 253 |
| 254 // Stores which content setting types actually have blocked content. | 254 // Stores which content setting types actually have blocked content. |
| 255 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; | 255 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; |
| 256 | 256 |
| 257 // Stores if the blocked content was messaged to the user. | 257 // Stores if the blocked content was messaged to the user. |
| 258 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES]; | 258 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES]; |
| 259 | 259 |
| 260 // Stores which content setting types actually were accessed. | 260 // Stores which content setting types actually were accessed. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 274 | 274 |
| 275 // Stores whether the user can load blocked plugins on this page. | 275 // Stores whether the user can load blocked plugins on this page. |
| 276 bool load_plugins_link_enabled_; | 276 bool load_plugins_link_enabled_; |
| 277 | 277 |
| 278 NotificationRegistrar registrar_; | 278 NotificationRegistrar registrar_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 280 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 283 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |