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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/blocked_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_BLOCKED_PLUGIN_H_
6 #define CHROME_RENDERER_BLOCKED_PLUGIN_H_
7
8 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h"
9 #include "webkit/glue/cpp_bound_class.h"
10 #include "webkit/glue/plugins/webview_plugin.h"
11
12 class RenderView;
13
14 class BlockedPlugin : public CppBoundClass,
15 public WebViewPlugin::Delegate {
16 public:
17 BlockedPlugin(RenderView* render_view,
18 WebKit::WebFrame* frame,
19 const WebKit::WebPluginParams& params);
20
21 void Load(const CppArgumentList& args, CppVariant* result);
22 void LoadPlugin();
23
24 WebViewPlugin* plugin() { return plugin_; }
25
26 // WebViewPlugin::Delegate methods:
27 virtual void BindWebFrame(WebKit::WebFrame* frame);
28 virtual void WillDestroyPlugin();
29
30 private:
31 virtual ~BlockedPlugin() { }
32
33 RenderView* render_view_;
34 WebKit::WebFrame* frame_;
35 WebKit::WebPluginParams plugin_params_;
36 WebViewPlugin* plugin_;
37 };
38
39 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_
OLDNEW
« 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