| 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 struct WebPluginParams; | 18 struct WebPluginParams; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace pepper { | 21 namespace pepper { |
| 22 | 22 |
| 23 class PluginDelegate; | 23 class PluginDelegate; |
| 24 class PluginInstance; | 24 class PluginInstance; |
| 25 class PluginModule; | 25 class PluginModule; |
| 26 class URLLoader; |
| 26 | 27 |
| 27 class WebPluginImpl : public WebKit::WebPlugin { | 28 class WebPluginImpl : public WebKit::WebPlugin { |
| 28 public: | 29 public: |
| 29 WebPluginImpl(PluginModule* module, | 30 WebPluginImpl(PluginModule* module, |
| 30 const WebKit::WebPluginParams& params, | 31 const WebKit::WebPluginParams& params, |
| 31 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 32 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
| 32 | 33 |
| 33 private: | 34 private: |
| 34 friend class DeleteTask<WebPluginImpl>; | 35 friend class DeleteTask<WebPluginImpl>; |
| 35 | 36 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 62 | 63 |
| 63 struct InitData { | 64 struct InitData { |
| 64 scoped_refptr<PluginModule> module; | 65 scoped_refptr<PluginModule> module; |
| 65 base::WeakPtr<PluginDelegate> delegate; | 66 base::WeakPtr<PluginDelegate> delegate; |
| 66 std::vector<std::string> arg_names; | 67 std::vector<std::string> arg_names; |
| 67 std::vector<std::string> arg_values; | 68 std::vector<std::string> arg_values; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 71 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 71 scoped_refptr<PluginInstance> instance_; | 72 scoped_refptr<PluginInstance> instance_; |
| 73 scoped_refptr<URLLoader> document_loader_; |
| 72 gfx::Rect plugin_rect_; | 74 gfx::Rect plugin_rect_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 76 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 } // namespace pepper | 79 } // namespace pepper |
| 78 | 80 |
| 79 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 81 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |