Chromium Code Reviews| Index: chrome/browser/content_settings/tab_specific_content_settings.h |
| diff --git a/chrome/browser/content_settings/tab_specific_content_settings.h b/chrome/browser/content_settings/tab_specific_content_settings.h |
| index f8924eacd3b627939334930b8b7f868dae39b430..79dcf3a5a8914f132ae53318fd6568bb9b795371 100644 |
| --- a/chrome/browser/content_settings/tab_specific_content_settings.h |
| +++ b/chrome/browser/content_settings/tab_specific_content_settings.h |
| @@ -18,6 +18,7 @@ |
| class CannedBrowsingDataAppCacheHelper; |
| class CannedBrowsingDataDatabaseHelper; |
| +class CannedBrowsingDataFilesystemHelper; |
| class CannedBrowsingDataIndexedDBHelper; |
| class CannedBrowsingDataLocalStorageHelper; |
| class CookiesTreeModel; |
| @@ -34,7 +35,7 @@ class CookieOptions; |
| class TabSpecificContentSettings : public TabContentsObserver, |
| public NotificationObserver { |
| public: |
| - TabSpecificContentSettings(TabContents* tab); |
| + explicit TabSpecificContentSettings(TabContents* tab); |
| virtual ~TabSpecificContentSettings(); |
| @@ -95,6 +96,15 @@ class TabSpecificContentSettings : public TabContentsObserver, |
| const string16& description, |
| bool blocked_by_policy); |
| + // Called when a specific file system in the current page was accessed. |
| + // If access was blocked dur to the user's content settings, |
|
Bernhard Bauer
2011/05/24 19:42:25
Nit: "due"
Mike West
2011/05/25 09:32:45
Done.
|
| + // |blocked_by_policy| should be true, and this function should invoke |
| + // OnContentBlocked. |
| + static void FileSystemAccessed(int render_process_id, |
| + int render_view_id, |
| + const GURL& url, |
| + bool blocked_by_policy); |
| + |
| // Resets the |content_blocked_| and |content_accessed_| arrays, except for |
| // CONTENT_SETTINGS_TYPE_COOKIES related information. |
| void ClearBlockedContentSettingsExceptForCookies(); |
| @@ -171,6 +181,8 @@ class TabSpecificContentSettings : public TabContentsObserver, |
| const std::string& cookie_line, |
| const net::CookieOptions& options, |
| bool blocked_by_policy); |
| + void OnFileSystemAccessed(const GURL& url, |
| + bool blocked_by_policy); |
| void OnIndexedDBAccessed(const GURL& url, |
| const string16& description, |
| bool blocked_by_policy); |
| @@ -200,6 +212,9 @@ class TabSpecificContentSettings : public TabContentsObserver, |
| CannedBrowsingDataDatabaseHelper* databases() const { |
| return databases_; |
| } |
| + CannedBrowsingDataFilesystemHelper* filesystems() const { |
| + return filesystems_; |
| + } |
| CannedBrowsingDataIndexedDBHelper* indexed_dbs() const { |
| return indexed_dbs_; |
| } |
| @@ -220,6 +235,7 @@ class TabSpecificContentSettings : public TabContentsObserver, |
| scoped_refptr<net::CookieMonster> cookies_; |
| scoped_refptr<CannedBrowsingDataAppCacheHelper> appcaches_; |
| scoped_refptr<CannedBrowsingDataDatabaseHelper> databases_; |
| + scoped_refptr<CannedBrowsingDataFilesystemHelper> filesystems_; |
| scoped_refptr<CannedBrowsingDataIndexedDBHelper> indexed_dbs_; |
| scoped_refptr<CannedBrowsingDataLocalStorageHelper> local_storages_; |
| scoped_refptr<CannedBrowsingDataLocalStorageHelper> session_storages_; |