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/public/renderer/render_view_observer.h" | 9 #include "content/public/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" |
11 #include "webkit/glue/cpp_bound_class.h" | 11 #include "webkit/glue/cpp_bound_class.h" |
12 #include "webkit/plugins/npapi/webview_plugin.h" | 12 #include "webkit/plugins/npapi/webview_plugin.h" |
13 #include "webkit/plugins/webplugininfo.h" | 13 #include "webkit/plugins/webplugininfo.h" |
14 | 14 |
15 class GURL; | |
16 | |
17 namespace webkit { | |
18 namespace npapi { | |
19 class PluginGroup; | |
20 } | |
21 } | |
22 | |
23 namespace webkit_glue { | |
24 struct CustomContextMenuContext; | |
25 } | |
26 | |
27 class BlockedPlugin : public content::RenderViewObserver, | 15 class BlockedPlugin : public content::RenderViewObserver, |
28 public CppBoundClass, | 16 public CppBoundClass, |
29 public webkit::npapi::WebViewPlugin::Delegate { | 17 public webkit::npapi::WebViewPlugin::Delegate { |
30 public: | 18 public: |
31 BlockedPlugin(content::RenderView* render_view, | 19 BlockedPlugin(content::RenderView* render_view, |
32 WebKit::WebFrame* frame, | 20 WebKit::WebFrame* frame, |
33 const webkit::WebPluginInfo& info, | 21 const webkit::WebPluginInfo& info, |
34 const WebKit::WebPluginParams& params, | 22 const WebKit::WebPluginParams& params, |
35 const WebPreferences& settings, | 23 const WebPreferences& settings, |
36 int template_id, | 24 int template_id, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // The name of the plugin that was blocked. | 70 // The name of the plugin that was blocked. |
83 string16 name_; | 71 string16 name_; |
84 // True iff the plugin was blocked because the page was being prerendered. | 72 // True iff the plugin was blocked because the page was being prerendered. |
85 // Plugin will automatically be loaded when the page is displayed. | 73 // Plugin will automatically be loaded when the page is displayed. |
86 bool is_blocked_for_prerendering_; | 74 bool is_blocked_for_prerendering_; |
87 bool hidden_; | 75 bool hidden_; |
88 bool allow_loading_; | 76 bool allow_loading_; |
89 }; | 77 }; |
90 | 78 |
91 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 79 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
OLD | NEW |