Chromium Code Reviews

Unified Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/renderer_host/render_view_host_delegate.h
diff --git a/chrome/browser/renderer_host/render_view_host_delegate.h b/chrome/browser/renderer_host/render_view_host_delegate.h
index 36b7a93303a3d6aea1313f174fe000efe6c0da7c..c343d78ea211650890d9d2c1b7aad60f552e6a7a 100644
--- a/chrome/browser/renderer_host/render_view_host_delegate.h
+++ b/chrome/browser/renderer_host/render_view_host_delegate.h
@@ -234,6 +234,9 @@ class RenderViewHostDelegate {
// Notification that a worker process has crashed.
virtual void OnCrashedWorker() = 0;
+ virtual void OnDisabledOutdatedPlugin(const string16& name,
+ const GURL& update_url) = 0;
+
// Notification that a request for install info has completed.
virtual void OnDidGetApplicationInfo(
int32 page_id,
@@ -493,6 +496,12 @@ class RenderViewHostDelegate {
virtual void OnDrop(const BookmarkDragData& data) = 0;
};
+ class BlockedPlugin {
+ public:
+ virtual void OnNonSandboxedPluginBlocked(const string16& name) = 0;
+ virtual void OnBlockedPluginLoaded() = 0;
+ };
+
// ---------------------------------------------------------------------------
// Returns the current delegate associated with a feature. May return NULL if
@@ -508,6 +517,7 @@ class RenderViewHostDelegate {
virtual Autocomplete* GetAutocompleteDelegate();
virtual AutoFill* GetAutoFillDelegate();
virtual BookmarkDrag* GetBookmarkDragDelegate();
+ virtual BlockedPlugin* GetBlockedPluginDelegate();
// Return the delegate for registering RenderViewHosts for automation resource
// routing.
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine