| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 5 #ifndef CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| 6 #define CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 6 #define CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/renderer/render_view_observer.h" | 9 #include "content/renderer/render_view_observer.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace webkit_glue { | 22 namespace webkit_glue { |
| 23 struct CustomContextMenuContext; | 23 struct CustomContextMenuContext; |
| 24 } | 24 } |
| 25 | 25 |
| 26 class BlockedPlugin : public RenderViewObserver, | 26 class BlockedPlugin : public RenderViewObserver, |
| 27 public CppBoundClass, | 27 public CppBoundClass, |
| 28 public webkit::npapi::WebViewPlugin::Delegate { | 28 public webkit::npapi::WebViewPlugin::Delegate { |
| 29 public: | 29 public: |
| 30 BlockedPlugin(RenderView* render_view, | 30 BlockedPlugin(RenderView* render_view, |
| 31 WebKit::WebFrame* frame, | 31 WebKit::WebFrame* frame, |
| 32 const webkit::npapi::PluginGroup& info, | |
| 33 const WebKit::WebPluginParams& params, | 32 const WebKit::WebPluginParams& params, |
| 34 const WebPreferences& settings, | 33 const WebPreferences& settings, |
| 35 int template_id, | 34 int template_id, |
| 35 const string16& name, |
| 36 const string16& message, | 36 const string16& message, |
| 37 bool is_blocked_for_prerendering, | 37 bool is_blocked_for_prerendering, |
| 38 bool allow_loading); | 38 bool allow_loading); |
| 39 | 39 |
| 40 webkit::npapi::WebViewPlugin* plugin() { return plugin_; } | 40 webkit::npapi::WebViewPlugin* plugin() { return plugin_; } |
| 41 | 41 |
| 42 // WebViewPlugin::Delegate methods: | 42 // WebViewPlugin::Delegate methods: |
| 43 virtual void BindWebFrame(WebKit::WebFrame* frame); | 43 virtual void BindWebFrame(WebKit::WebFrame* frame); |
| 44 virtual void WillDestroyPlugin(); | 44 virtual void WillDestroyPlugin(); |
| 45 virtual void ShowContextMenu(const WebKit::WebMouseEvent&); | 45 virtual void ShowContextMenu(const WebKit::WebMouseEvent&); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 75 // The name of the plugin that was blocked. | 75 // The name of the plugin that was blocked. |
| 76 string16 name_; | 76 string16 name_; |
| 77 // True iff the plugin was blocked because the page was being prerendered. | 77 // True iff the plugin was blocked because the page was being prerendered. |
| 78 // Plugin will automatically be loaded when the page is displayed. | 78 // Plugin will automatically be loaded when the page is displayed. |
| 79 bool is_blocked_for_prerendering_; | 79 bool is_blocked_for_prerendering_; |
| 80 bool hidden_; | 80 bool hidden_; |
| 81 bool allow_loading_; | 81 bool allow_loading_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 84 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| OLD | NEW |