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

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

Issue 105553005: Make PepperWebPlugin not use RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 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
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 blink { 20 namespace blink {
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 PepperPluginInstanceImpl; 27 class PepperPluginInstanceImpl;
28 class PluginModule; 28 class PluginModule;
29 class PPB_URLLoader_Impl; 29 class PPB_URLLoader_Impl;
30 class RenderFrame; 30 class RenderFrameImpl;
31 class RenderViewImpl;
32 31
33 class PepperWebPluginImpl : public blink::WebPlugin { 32 class PepperWebPluginImpl : public blink::WebPlugin {
34 public: 33 public:
35 PepperWebPluginImpl(PluginModule* module, 34 PepperWebPluginImpl(PluginModule* module,
36 const blink::WebPluginParams& params, 35 const blink::WebPluginParams& params,
37 const base::WeakPtr<RenderViewImpl>& render_view, 36 RenderFrameImpl* render_frame);
38 RenderFrame* render_frame);
39 37
40 PepperPluginInstanceImpl* instance() { return instance_.get(); } 38 PepperPluginInstanceImpl* instance() { return instance_.get(); }
41 39
42 // blink::WebPlugin implementation. 40 // blink::WebPlugin implementation.
43 virtual blink::WebPluginContainer* container() const; 41 virtual blink::WebPluginContainer* container() const;
44 virtual bool initialize(blink::WebPluginContainer* container); 42 virtual bool initialize(blink::WebPluginContainer* container);
45 virtual void destroy(); 43 virtual void destroy();
46 virtual NPObject* scriptableObject(); 44 virtual NPObject* scriptableObject();
47 virtual struct _NPP* pluginNPP(); 45 virtual struct _NPP* pluginNPP();
48 virtual bool getFormValue(blink::WebString& value); 46 virtual bool getFormValue(blink::WebString& value);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 gfx::Rect plugin_rect_; 99 gfx::Rect plugin_rect_;
102 PP_Var instance_object_; 100 PP_Var instance_object_;
103 blink::WebPluginContainer* container_; 101 blink::WebPluginContainer* container_;
104 102
105 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); 103 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl);
106 }; 104 };
107 105
108 } // namespace content 106 } // namespace content
109 107
110 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ 108 #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