Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1541)

Unified Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 6966036: Wrapping blocked filesystems into TabSpecificContentSettings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/content_settings/tab_specific_content_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/content_settings/tab_specific_content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698