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

Unified Diff: chrome/browser/host_content_settings_map.h

Issue 2868059: Preparatory work for adding content exceptions from the tab cookie view. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 5 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 | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/host_content_settings_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/host_content_settings_map.h
diff --git a/chrome/browser/host_content_settings_map.h b/chrome/browser/host_content_settings_map.h
index 876fa71388ab7da802ed2a09d9692b797cbaddd8..fc38afcc7086927dcb4e456135b6d6273bcda4f5 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.
« no previous file with comments | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698