| 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 WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 namespace WebKit { | 25 namespace WebKit { |
| 26 struct WebPluginParams; | 26 struct WebPluginParams; |
| 27 struct WebPrintParams; | 27 struct WebPrintParams; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace webkit { | 30 namespace webkit { |
| 31 namespace ppapi { | 31 namespace ppapi { |
| 32 | 32 |
| 33 class PluginDelegate; | 33 class PluginDelegate; |
| 34 class PluginInstance; | 34 class PluginInstanceImpl; |
| 35 class PluginModule; | 35 class PluginModule; |
| 36 class PPB_URLLoader_Impl; | 36 class PPB_URLLoader_Impl; |
| 37 | 37 |
| 38 class WebPluginImpl : public WebKit::WebPlugin { | 38 class WebPluginImpl : public WebKit::WebPlugin { |
| 39 public: | 39 public: |
| 40 WEBKIT_PLUGINS_EXPORT WebPluginImpl( | 40 WEBKIT_PLUGINS_EXPORT WebPluginImpl( |
| 41 PluginModule* module, | 41 PluginModule* module, |
| 42 const WebKit::WebPluginParams& params, | 42 const WebKit::WebPluginParams& params, |
| 43 const base::WeakPtr<PluginDelegate>& plugin_delegate, | 43 const base::WeakPtr<PluginDelegate>& plugin_delegate, |
| 44 const base::WeakPtr<content::RenderView>& render_view); | 44 const base::WeakPtr<content::RenderView>& render_view); |
| 45 | 45 |
| 46 PluginInstance* instance() { return instance_.get(); } | 46 PluginInstanceImpl* instance() { return instance_.get(); } |
| 47 | 47 |
| 48 // WebKit::WebPlugin implementation. | 48 // WebKit::WebPlugin implementation. |
| 49 virtual WebKit::WebPluginContainer* container() const; | 49 virtual WebKit::WebPluginContainer* container() const; |
| 50 virtual bool initialize(WebKit::WebPluginContainer* container); | 50 virtual bool initialize(WebKit::WebPluginContainer* container); |
| 51 virtual void destroy(); | 51 virtual void destroy(); |
| 52 virtual NPObject* scriptableObject(); | 52 virtual NPObject* scriptableObject(); |
| 53 virtual struct _NPP* pluginNPP(); | 53 virtual struct _NPP* pluginNPP(); |
| 54 virtual bool getFormValue(WebKit::WebString& value); | 54 virtual bool getFormValue(WebKit::WebString& value); |
| 55 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); | 55 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); |
| 56 virtual void updateGeometry( | 56 virtual void updateGeometry( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 private: | 96 private: |
| 97 friend class base::DeleteHelper<WebPluginImpl>; | 97 friend class base::DeleteHelper<WebPluginImpl>; |
| 98 | 98 |
| 99 WEBKIT_PLUGINS_EXPORT virtual ~WebPluginImpl(); | 99 WEBKIT_PLUGINS_EXPORT virtual ~WebPluginImpl(); |
| 100 struct InitData; | 100 struct InitData; |
| 101 | 101 |
| 102 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 102 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 103 // True if the instance represents the entire document in a frame instead of | 103 // True if the instance represents the entire document in a frame instead of |
| 104 // being an embedded resource. | 104 // being an embedded resource. |
| 105 bool full_frame_; | 105 bool full_frame_; |
| 106 scoped_refptr<PluginInstance> instance_; | 106 scoped_refptr<PluginInstanceImpl> instance_; |
| 107 gfx::Rect plugin_rect_; | 107 gfx::Rect plugin_rect_; |
| 108 PP_Var instance_object_; | 108 PP_Var instance_object_; |
| 109 WebKit::WebPluginContainer* container_; | 109 WebKit::WebPluginContainer* container_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 111 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace ppapi | 114 } // namespace ppapi |
| 115 } // namespace webkit | 115 } // namespace webkit |
| 116 | 116 |
| 117 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 117 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |