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