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

Unified Diff: chrome/renderer/blocked_plugin.h

Issue 2862031: Add click-to-load functionality for blocked plugins. (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/chrome_renderer.gypi ('k') | chrome/renderer/blocked_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/blocked_plugin.h
diff --git a/chrome/renderer/blocked_plugin.h b/chrome/renderer/blocked_plugin.h
new file mode 100644
index 0000000000000000000000000000000000000000..50a81969c3a3edea4aa5eba2bec8ff7b0d139d93
--- /dev/null
+++ b/chrome/renderer/blocked_plugin.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_BLOCKED_PLUGIN_H_
+#define CHROME_RENDERER_BLOCKED_PLUGIN_H_
+
+#include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h"
+#include "webkit/glue/cpp_bound_class.h"
+#include "webkit/glue/plugins/webview_plugin.h"
+
+class RenderView;
+
+class BlockedPlugin : public CppBoundClass,
+ public WebViewPlugin::Delegate {
+ public:
+ BlockedPlugin(RenderView* render_view,
+ WebKit::WebFrame* frame,
+ const WebKit::WebPluginParams& params);
+
+ void Load(const CppArgumentList& args, CppVariant* result);
+ void LoadPlugin();
+
+ WebViewPlugin* plugin() { return plugin_; }
+
+ // WebViewPlugin::Delegate methods:
+ virtual void BindWebFrame(WebKit::WebFrame* frame);
+ virtual void WillDestroyPlugin();
+
+ private:
+ virtual ~BlockedPlugin() { }
+
+ RenderView* render_view_;
+ WebKit::WebFrame* frame_;
+ WebKit::WebPluginParams plugin_params_;
+ WebViewPlugin* plugin_;
+};
+
+#endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/blocked_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698