| OLD | NEW |
| (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_ |
| OLD | NEW |