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

Unified Diff: chrome/browser/plugins/chrome_plugin_service_filter.h

Issue 2168453002: [HBD] Don't advertise Flash if Content Setting is on CONTENT_SETTING_BLOCK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compilation error Created 4 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 | « no previous file | chrome/browser/plugins/chrome_plugin_service_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/chrome_plugin_service_filter.h
diff --git a/chrome/browser/plugins/chrome_plugin_service_filter.h b/chrome/browser/plugins/chrome_plugin_service_filter.h
index a84b367917dd3eaeb5a58c58e7f08ebc7e2e129a..f3876e145a6ed4307b0d7a47c37183b874932599 100644
--- a/chrome/browser/plugins/chrome_plugin_service_filter.h
+++ b/chrome/browser/plugins/chrome_plugin_service_filter.h
@@ -21,6 +21,7 @@
#include "content/public/common/webplugininfo.h"
#include "url/gurl.h"
+class HostContentSettingsMap;
class PluginPrefs;
class Profile;
@@ -36,7 +37,10 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
static ChromePluginServiceFilter* GetInstance();
// This method should be called on the UI thread.
- void RegisterResourceContext(PluginPrefs* plugin_prefs, const void* context);
+ void RegisterResourceContext(
+ scoped_refptr<PluginPrefs> plugin_prefs,
+ scoped_refptr<HostContentSettingsMap> host_content_settings_map,
+ const void* context);
void UnregisterResourceContext(const void* context);
@@ -108,7 +112,10 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
base::Lock lock_; // Guards access to member variables.
typedef std::map<const void*, scoped_refptr<PluginPrefs> > ResourceContextMap;
- ResourceContextMap resource_context_map_;
+ ResourceContextMap plugin_prefs_;
+
+ std::map<const void*, scoped_refptr<HostContentSettingsMap>>
+ host_content_settings_maps_;
std::map<int, ProcessDetails> plugin_details_;
};
« no previous file with comments | « no previous file | chrome/browser/plugins/chrome_plugin_service_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698