diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 23:26:06 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-01 23:26:06 +0000 |
commit | 566fa0f2d549d5eb499aefbed9bbeb8d2a11adc2 (patch) | |
tree | f169be53d8bcf0f3d3107912de5fd3d2e875b1d4 /chrome/renderer/content_settings_observer.h | |
parent | eb7f6abf44e7c88fb9c4470b003d608fee70016f (diff) | |
download | chromium_src-566fa0f2d549d5eb499aefbed9bbeb8d2a11adc2.zip chromium_src-566fa0f2d549d5eb499aefbed9bbeb8d2a11adc2.tar.gz chromium_src-566fa0f2d549d5eb499aefbed9bbeb8d2a11adc2.tar.bz2 |
Cached response ContentSettingsObserver::AllowStorage
BUG=84554
TEST=RenderViewTest
Review URL: http://codereview.chromium.org/7106001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/content_settings_observer.h')
-rw-r--r-- | chrome/renderer/content_settings_observer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/content_settings_observer.h b/chrome/renderer/content_settings_observer.h index ed47c5f..4929edb 100644 --- a/chrome/renderer/content_settings_observer.h +++ b/chrome/renderer/content_settings_observer.h @@ -84,6 +84,10 @@ class ContentSettingsObserver // Stores if images, scripts, and plugins have actually been blocked. bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES]; + // Caches the result of AllowStorage. + typedef std::pair<GURL, bool> StoragePermissionsKey; + std::map<StoragePermissionsKey, bool> cached_storage_permissions_; + bool plugins_temporarily_allowed_; DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |