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

Side by Side Diff: chrome/renderer/blocked_plugin.h

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 "chrome/common/notification_observer.h" 9 #include "chrome/common/notification_observer.h"
10 #include "chrome/common/notification_registrar.h" 10 #include "chrome/common/notification_registrar.h"
11 #include "chrome/renderer/custom_menu_listener.h" 11 #include "chrome/renderer/custom_menu_listener.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h"
13 #include "webkit/glue/cpp_bound_class.h" 13 #include "webkit/glue/cpp_bound_class.h"
14 #include "webkit/glue/plugins/webview_plugin.h" 14 #include "webkit/plugins/npapi/webview_plugin.h"
15 15
16 class GURL; 16 class GURL;
17 class PluginGroup;
18 class RenderView; 17 class RenderView;
19 18
19
20 namespace webkit {
21 namespace npapi {
22 class PluginGroup;
23 }
24 }
25
20 class BlockedPlugin : public CppBoundClass, 26 class BlockedPlugin : public CppBoundClass,
21 public WebViewPlugin::Delegate, 27 public webkit::npapi::WebViewPlugin::Delegate,
22 public NotificationObserver, 28 public NotificationObserver,
23 public CustomMenuListener { 29 public CustomMenuListener {
24 public: 30 public:
25 BlockedPlugin(RenderView* render_view, 31 BlockedPlugin(RenderView* render_view,
26 WebKit::WebFrame* frame, 32 WebKit::WebFrame* frame,
27 const PluginGroup& info, 33 const webkit::npapi::PluginGroup& info,
28 const WebKit::WebPluginParams& params, 34 const WebKit::WebPluginParams& params,
29 const WebPreferences& settings, 35 const WebPreferences& settings,
30 int template_id, 36 int template_id,
31 const string16& message); 37 const string16& message);
32 38
33 WebViewPlugin* plugin() { return plugin_; } 39 webkit::npapi::WebViewPlugin* plugin() { return plugin_; }
34 40
35 // WebViewPlugin::Delegate methods: 41 // WebViewPlugin::Delegate methods:
36 virtual void BindWebFrame(WebKit::WebFrame* frame); 42 virtual void BindWebFrame(WebKit::WebFrame* frame);
37 virtual void WillDestroyPlugin(); 43 virtual void WillDestroyPlugin();
38 virtual void ShowContextMenu(const WebKit::WebMouseEvent&); 44 virtual void ShowContextMenu(const WebKit::WebMouseEvent&);
39 45
40 // NotificationObserver methods: 46 // NotificationObserver methods:
41 virtual void Observe(NotificationType type, 47 virtual void Observe(NotificationType type,
42 const NotificationSource& source, 48 const NotificationSource& source,
43 const NotificationDetails& details); 49 const NotificationDetails& details);
(...skipping 11 matching lines...) Expand all
55 61
56 // Load the blocked plugin. 62 // Load the blocked plugin.
57 void LoadPlugin(); 63 void LoadPlugin();
58 64
59 // Hide the blocked plugin. 65 // Hide the blocked plugin.
60 void HidePlugin(); 66 void HidePlugin();
61 67
62 RenderView* render_view_; 68 RenderView* render_view_;
63 WebKit::WebFrame* frame_; 69 WebKit::WebFrame* frame_;
64 WebKit::WebPluginParams plugin_params_; 70 WebKit::WebPluginParams plugin_params_;
65 WebViewPlugin* plugin_; 71 webkit::npapi::WebViewPlugin* plugin_;
66 // The name of the plugin that was blocked. 72 // The name of the plugin that was blocked.
67 string16 name_; 73 string16 name_;
68 74
69 NotificationRegistrar registrar_; 75 NotificationRegistrar registrar_;
70 }; 76 };
71 77
72 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ 78 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/blocked_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698