| OLD | NEW |
| 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 WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/weak_ptr.h" | 11 #include "base/weak_ptr.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "gfx/rect.h" | 14 #include "gfx/rect.h" |
| 15 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebPlugin.h" |
| 16 | 16 |
| 17 namespace WebKit { | 17 namespace WebKit { |
| 18 class WebFrame; | |
| 19 struct WebPluginParams; | 18 struct WebPluginParams; |
| 20 } | 19 } |
| 21 | 20 |
| 22 namespace pepper { | 21 namespace pepper { |
| 23 | 22 |
| 24 class PluginDelegate; | 23 class PluginDelegate; |
| 25 class PluginInstance; | 24 class PluginInstance; |
| 26 class PluginModule; | 25 class PluginModule; |
| 27 | 26 |
| 28 class WebPluginImpl : public WebKit::WebPlugin { | 27 class WebPluginImpl : public WebKit::WebPlugin { |
| 29 public: | 28 public: |
| 30 WebPluginImpl(PluginModule* module, | 29 WebPluginImpl(PluginModule* module, |
| 31 WebKit::WebFrame* frame, | |
| 32 const WebKit::WebPluginParams& params, | 30 const WebKit::WebPluginParams& params, |
| 33 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 31 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
| 34 | 32 |
| 35 private: | 33 private: |
| 36 friend class DeleteTask<WebPluginImpl>; | 34 friend class DeleteTask<WebPluginImpl>; |
| 37 | 35 |
| 38 ~WebPluginImpl(); | 36 ~WebPluginImpl(); |
| 39 | 37 |
| 40 // WebKit::WebPlugin implementation. | 38 // WebKit::WebPlugin implementation. |
| 41 virtual bool initialize(WebKit::WebPluginContainer* container); | 39 virtual bool initialize(WebKit::WebPluginContainer* container); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 72 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 70 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 73 scoped_refptr<PluginInstance> instance_; | 71 scoped_refptr<PluginInstance> instance_; |
| 74 gfx::Rect plugin_rect_; | 72 gfx::Rect plugin_rect_; |
| 75 | 73 |
| 76 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 74 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 77 }; | 75 }; |
| 78 | 76 |
| 79 } // namespace pepper | 77 } // namespace pepper |
| 80 | 78 |
| 81 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 79 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |