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 16 matching lines...) Expand all Loading... |
27 class Profile; | 27 class Profile; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class RenderViewHost; | 30 class RenderViewHost; |
31 } | 31 } |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 class CookieOptions; | 34 class CookieOptions; |
35 } | 35 } |
36 | 36 |
| 37 // This class manages state about permissions, content settings, cookies and |
| 38 // site data for a specific WebContents. It tracks which content was accessed |
| 39 // and which content was blocked. Based on this it provides information about |
| 40 // which types of content were accessed and blocked. |
37 class TabSpecificContentSettings | 41 class TabSpecificContentSettings |
38 : public content::WebContentsObserver, | 42 : public content::WebContentsObserver, |
39 public content::NotificationObserver, | 43 public content::NotificationObserver, |
40 public content::WebContentsUserData<TabSpecificContentSettings> { | 44 public content::WebContentsUserData<TabSpecificContentSettings> { |
41 public: | 45 public: |
42 // Classes that want to be notified about site data events must implement | 46 // Classes that want to be notified about site data events must implement |
43 // this abstract class and add themselves as observer to the | 47 // this abstract class and add themselves as observer to the |
44 // |TabSpecificContentSettings|. | 48 // |TabSpecificContentSettings|. |
45 class SiteDataObserver { | 49 class SiteDataObserver { |
46 public: | 50 public: |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 345 |
342 // Stores whether the user can load blocked plugins on this page. | 346 // Stores whether the user can load blocked plugins on this page. |
343 bool load_plugins_link_enabled_; | 347 bool load_plugins_link_enabled_; |
344 | 348 |
345 content::NotificationRegistrar registrar_; | 349 content::NotificationRegistrar registrar_; |
346 | 350 |
347 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 351 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
348 }; | 352 }; |
349 | 353 |
350 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 354 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
OLD | NEW |