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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.h

Issue 1412523003: Adding <keygen> Content Setting (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing page action. Created 5 years 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
Index: components/content_settings/core/browser/host_content_settings_map.h
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h
index 13e4df176f2ddb648cbf34940f76d233f1488e2b..e92f23fd5a8de183488cdfe5d954d5acce445763 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -9,6 +9,7 @@
#define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_HOST_CONTENT_SETTINGS_MAP_H_
#include <map>
+#include <set>
#include <string>
#include <vector>
@@ -243,6 +244,9 @@ class HostContentSettingsMap : public content_settings::Observer,
const ContentSettingsPattern& secondary_pattern,
ContentSettingsType content_type);
+ void SetShouldDisplay(const GURL& url, ContentSettingsType content_type);
+ bool ShouldDisplay(const GURL& url, ContentSettingsType content_type);
+
// Adds/removes an observer for content settings changes.
void AddObserver(content_settings::Observer* observer);
void RemoveObserver(content_settings::Observer* observer);
@@ -332,6 +336,8 @@ class HostContentSettingsMap : public content_settings::Observer,
// Whether this settings map is for an OTR session.
bool is_off_the_record_;
+ std::map<GURL, std::set<ContentSettingsType>> display_map_;
Bernhard Bauer 2015/12/17 11:56:03 This should not live in the HostContentSettingsMap
svaldez 2015/12/17 15:25:42 Done.
Bernhard Bauer 2015/12/17 15:51:05 Sorry, I should have been a bit more detailed. Tab
+
// Content setting providers. This is only modified at construction
// time and by RegisterExtensionService, both of which should happen
// before any other uses of it.

Powered by Google App Engine
This is Rietveld 408576698