summaryrefslogtreecommitdiffstats
path: root/chrome/browser/host_content_settings_map.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 09:29:02 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 09:29:02 +0000
commitcbd426185e5893b46084922ea4c6c766cd94bc26 (patch)
tree30b0904baab77b0925f7b2f4c0a38a6aa22601b3 /chrome/browser/host_content_settings_map.h
parentc2751189951618b8a7b908d30083bb8a5efb7e52 (diff)
downloadchromium_src-cbd426185e5893b46084922ea4c6c766cd94bc26.zip
chromium_src-cbd426185e5893b46084922ea4c6c766cd94bc26.tar.gz
chromium_src-cbd426185e5893b46084922ea4c6c766cd94bc26.tar.bz2
Preparatory work for adding content exceptions from the tab cookie view.
Factor out HostContentSettingsMap::AddExceptionForURL() and add CookieTreeOriginNode::CreateContentException(). Review URL: http://codereview.chromium.org/2868059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_content_settings_map.h')
-rw-r--r--chrome/browser/host_content_settings_map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/host_content_settings_map.h b/chrome/browser/host_content_settings_map.h
index 876fa713..fc38afc 100644
--- a/chrome/browser/host_content_settings_map.h
+++ b/chrome/browser/host_content_settings_map.h
@@ -142,6 +142,13 @@ class HostContentSettingsMap
ContentSettingsType content_type,
ContentSetting setting);
+ // Convenience method to add a content setting for a given URL, making sure
+ // that there is no setting overriding it.
+ // This should only be called on the UI thread.
+ void AddExceptionForURL(const GURL& url,
+ ContentSettingsType content_type,
+ ContentSetting setting);
+
// Clears all host-specific settings for one content type.
//
// This should only be called on the UI thread.