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

Unified Diff: chrome/browser/chrome_plugin_service_filter.h

Issue 9169042: Block plugins for platform apps (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: NPAPI disabling removed, now blocks all plugins Created 8 years, 11 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
Index: chrome/browser/chrome_plugin_service_filter.h
diff --git a/chrome/browser/chrome_plugin_service_filter.h b/chrome/browser/chrome_plugin_service_filter.h
index 03515262d3534aa1ea687a5282f5713443018944..c95d00ac8d2c9564b24739d3a1ca298df7232faa 100644
--- a/chrome/browser/chrome_plugin_service_filter.h
+++ b/chrome/browser/chrome_plugin_service_filter.h
@@ -8,7 +8,6 @@
#include <map>
#include <vector>
-#include <set>
#include "base/hash_tables.h"
#include "base/file_path.h"
@@ -51,14 +50,6 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
// Lifts a restriction on a plug-in.
void UnrestrictPlugin(const FilePath& plugin_path);
- // Disable NPAPI plugins for the given render view.
- void DisableNPAPIForRenderView(int render_process_id,
- int render_view_id);
-
- // Clear info about disabled NPAPI plugins for the given render view.
- void ClearDisabledNPAPIForRenderView(int render_process_id,
- int render_view_id);
-
// PluginServiceFilter implementation:
virtual bool ShouldUsePlugin(
int render_process_id,
@@ -97,10 +88,6 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
ResourceContextMap resource_context_map_;
std::vector<OverriddenPlugin> overridden_plugins_;
-
- // RenderViewInfo is (render_process_id, render_view_id).
- typedef std::pair<int, int> RenderViewInfo;
- std::set<RenderViewInfo> npapi_disabled_render_views_;
};
#endif // CHROME_BROWSER_CHROME_PLUGIN_SERVICE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698