| OLD | NEW | 
|---|
| 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 PepperHelperImpl; | 
| 28 class PepperPluginInstanceImpl; | 28 class PepperPluginInstanceImpl; | 
| 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( | 35   PepperWebPluginImpl( | 
| 36       PluginModule* module, | 36       PluginModule* module, | 
| 37       const WebKit::WebPluginParams& params, | 37       const WebKit::WebPluginParams& params, | 
| 38       const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, | 38       const base::WeakPtr<PepperHelperImpl>& plugin_delegate, | 
| 39       const base::WeakPtr<RenderViewImpl>& render_view); | 39       const base::WeakPtr<RenderViewImpl>& render_view); | 
| 40 | 40 | 
| 41   PepperPluginInstanceImpl* instance() { return instance_.get(); } | 41   PepperPluginInstanceImpl* instance() { return instance_.get(); } | 
| 42 | 42 | 
| 43   // WebKit::WebPlugin implementation. | 43   // WebKit::WebPlugin implementation. | 
| 44   virtual WebKit::WebPluginContainer* container() const; | 44   virtual WebKit::WebPluginContainer* container() const; | 
| 45   virtual bool initialize(WebKit::WebPluginContainer* container); | 45   virtual bool initialize(WebKit::WebPluginContainer* container); | 
| 46   virtual void destroy(); | 46   virtual void destroy(); | 
| 47   virtual NPObject* scriptableObject(); | 47   virtual NPObject* scriptableObject(); | 
| 48   virtual struct _NPP* pluginNPP(); | 48   virtual struct _NPP* pluginNPP(); | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 102   gfx::Rect plugin_rect_; | 102   gfx::Rect plugin_rect_; | 
| 103   PP_Var instance_object_; | 103   PP_Var instance_object_; | 
| 104   WebKit::WebPluginContainer* container_; | 104   WebKit::WebPluginContainer* container_; | 
| 105 | 105 | 
| 106   DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 106   DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 
| 107 }; | 107 }; | 
| 108 | 108 | 
| 109 }  // namespace content | 109 }  // namespace content | 
| 110 | 110 | 
| 111 #endif  // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 111 #endif  // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 
| OLD | NEW | 
|---|