| 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_PLUGINS_PPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_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 webkit { |
| 22 namespace plugins { |
| 23 namespace ppapi { |
| 22 | 24 |
| 23 class PluginDelegate; | 25 class PluginDelegate; |
| 24 class PluginInstance; | 26 class PluginInstance; |
| 25 class PluginModule; | 27 class PluginModule; |
| 26 class URLLoader; | 28 class PPB_URLLoader_Impl; |
| 27 | 29 |
| 28 class WebPluginImpl : public WebKit::WebPlugin { | 30 class WebPluginImpl : public WebKit::WebPlugin { |
| 29 public: | 31 public: |
| 30 WebPluginImpl(PluginModule* module, | 32 WebPluginImpl(PluginModule* module, |
| 31 const WebKit::WebPluginParams& params, | 33 const WebKit::WebPluginParams& params, |
| 32 const base::WeakPtr<PluginDelegate>& plugin_delegate); | 34 const base::WeakPtr<PluginDelegate>& plugin_delegate); |
| 33 | 35 |
| 34 private: | 36 private: |
| 35 friend class DeleteTask<WebPluginImpl>; | 37 friend class DeleteTask<WebPluginImpl>; |
| 36 | 38 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); | 79 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); |
| 78 virtual void printEnd(); | 80 virtual void printEnd(); |
| 79 | 81 |
| 80 struct InitData; | 82 struct InitData; |
| 81 | 83 |
| 82 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 84 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 83 // True if the instance represents the entire document in a frame instead of | 85 // True if the instance represents the entire document in a frame instead of |
| 84 // being an embedded resource. | 86 // being an embedded resource. |
| 85 bool full_frame_; | 87 bool full_frame_; |
| 86 scoped_refptr<PluginInstance> instance_; | 88 scoped_refptr<PluginInstance> instance_; |
| 87 scoped_refptr<URLLoader> document_loader_; | 89 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
| 88 gfx::Rect plugin_rect_; | 90 gfx::Rect plugin_rect_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 92 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace pepper | 95 } // namespace ppapi |
| 96 } // namespace plugins |
| 97 } // namespace webkit |
| 94 | 98 |
| 95 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 99 #endif // WEBKIT_PLUGINS_PPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |