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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.h

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/sequenced_task_runner_helpers.h" 13 #include "base/sequenced_task_runner_helpers.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 #include "third_party/WebKit/public/web/WebPlugin.h" 15 #include "third_party/WebKit/public/web/WebPlugin.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 struct _NPP; 18 struct _NPP;
19 19
20 namespace WebKit { 20 namespace WebKit {
21 struct WebPluginParams; 21 struct WebPluginParams;
22 struct WebPrintParams; 22 struct WebPrintParams;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 class PepperPluginDelegateImpl;
27 class PepperPluginInstanceImpl; 28 class PepperPluginInstanceImpl;
28 class PluginDelegate;
29 class PluginModule; 29 class PluginModule;
30 class PPB_URLLoader_Impl; 30 class PPB_URLLoader_Impl;
31 class RenderViewImpl; 31 class RenderViewImpl;
32 32
33 class PepperWebPluginImpl : public WebKit::WebPlugin { 33 class PepperWebPluginImpl : public WebKit::WebPlugin {
34 public: 34 public:
35 PepperWebPluginImpl(PluginModule* module, 35 PepperWebPluginImpl(
36 const WebKit::WebPluginParams& params, 36 PluginModule* module,
37 const base::WeakPtr<PluginDelegate>& plugin_delegate, 37 const WebKit::WebPluginParams& params,
38 const base::WeakPtr<RenderViewImpl>& render_view); 38 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate,
39 const base::WeakPtr<RenderViewImpl>& render_view);
39 40
40 PepperPluginInstanceImpl* instance() { return instance_.get(); } 41 PepperPluginInstanceImpl* instance() { return instance_.get(); }
41 42
42 // WebKit::WebPlugin implementation. 43 // WebKit::WebPlugin implementation.
43 virtual WebKit::WebPluginContainer* container() const; 44 virtual WebKit::WebPluginContainer* container() const;
44 virtual bool initialize(WebKit::WebPluginContainer* container); 45 virtual bool initialize(WebKit::WebPluginContainer* container);
45 virtual void destroy(); 46 virtual void destroy();
46 virtual NPObject* scriptableObject(); 47 virtual NPObject* scriptableObject();
47 virtual struct _NPP* pluginNPP(); 48 virtual struct _NPP* pluginNPP();
48 virtual bool getFormValue(WebKit::WebString& value); 49 virtual bool getFormValue(WebKit::WebString& value);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 gfx::Rect plugin_rect_; 102 gfx::Rect plugin_rect_;
102 PP_Var instance_object_; 103 PP_Var instance_object_;
103 WebKit::WebPluginContainer* container_; 104 WebKit::WebPluginContainer* container_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); 106 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace content
109 110
110 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ 111 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/pepper/pepper_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698