| 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_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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 void OnContentAccessed(ContentSettingsType type); | 281 void OnContentAccessed(ContentSettingsType type); |
| 282 | 282 |
| 283 // content::NotificationObserver implementation. | 283 // content::NotificationObserver implementation. |
| 284 virtual void Observe(int type, | 284 virtual void Observe(int type, |
| 285 const content::NotificationSource& source, | 285 const content::NotificationSource& source, |
| 286 const content::NotificationDetails& details) OVERRIDE; | 286 const content::NotificationDetails& details) OVERRIDE; |
| 287 | 287 |
| 288 // Notifies all registered |SiteDataObserver|s. | 288 // Notifies all registered |SiteDataObserver|s. |
| 289 void NotifySiteDataObservers(); | 289 void NotifySiteDataObservers(); |
| 290 | 290 |
| 291 // All currently registered |SiteDataObserver|. | 291 // All currently registered |SiteDataObserver|s. |
| 292 ObserverList<SiteDataObserver, true> observer_list_; | 292 ObserverList<SiteDataObserver> observer_list_; |
| 293 | 293 |
| 294 // Stores which content setting types actually have blocked content. | 294 // Stores which content setting types actually have blocked content. |
| 295 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; | 295 bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; |
| 296 | 296 |
| 297 // Stores if the blocked content was messaged to the user. | 297 // Stores if the blocked content was messaged to the user. |
| 298 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES]; | 298 bool content_blockage_indicated_to_user_[CONTENT_SETTINGS_NUM_TYPES]; |
| 299 | 299 |
| 300 // Stores which content setting types actually were accessed. | 300 // Stores which content setting types actually were accessed. |
| 301 bool content_accessed_[CONTENT_SETTINGS_NUM_TYPES]; | 301 bool content_accessed_[CONTENT_SETTINGS_NUM_TYPES]; |
| 302 | 302 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 332 | 332 |
| 333 // Stores whether the user can load blocked plugins on this page. | 333 // Stores whether the user can load blocked plugins on this page. |
| 334 bool load_plugins_link_enabled_; | 334 bool load_plugins_link_enabled_; |
| 335 | 335 |
| 336 content::NotificationRegistrar registrar_; | 336 content::NotificationRegistrar registrar_; |
| 337 | 337 |
| 338 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 338 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 339 }; | 339 }; |
| 340 | 340 |
| 341 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 341 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |