OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "app/gfx/native_widget_types.h" | 14 #include "app/gfx/native_widget_types.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/gfx/rect.h" | 16 #include "base/gfx/rect.h" |
17 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
19 #include "base/task.h" | 19 #include "base/task.h" |
20 #include "chrome/common/transport_dib.h" | 20 #include "chrome/common/transport_dib.h" |
21 #include "skia/ext/platform_canvas.h" | 21 #include "skia/ext/platform_canvas.h" |
22 #include "third_party/npapi/bindings/npapi.h" | 22 #include "third_party/npapi/bindings/npapi.h" |
| 23 #include "webkit/glue/pepper/pepper.h" |
23 #include "webkit/glue/webcursor.h" | 24 #include "webkit/glue/webcursor.h" |
24 #include "webkit/glue/webplugin_delegate.h" | 25 #include "webkit/glue/webplugin_delegate.h" |
25 | 26 |
26 namespace NPAPI { | 27 namespace NPAPI { |
27 class PluginInstance; | 28 class PluginInstance; |
28 } | 29 } |
29 | 30 |
30 // An implementation of WebPluginDelegate for Pepper in-process plugins. | 31 // An implementation of WebPluginDelegate for Pepper in-process plugins. |
31 class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { | 32 class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate { |
32 public: | 33 public: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 scoped_ptr<skia::PlatformCanvas> plugin_canvas_; | 127 scoped_ptr<skia::PlatformCanvas> plugin_canvas_; |
127 SkBitmap committed_bitmap_; | 128 SkBitmap committed_bitmap_; |
128 | 129 |
129 // The url with which the plugin was instantiated. | 130 // The url with which the plugin was instantiated. |
130 std::string plugin_url_; | 131 std::string plugin_url_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); | 133 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); |
133 }; | 134 }; |
134 | 135 |
135 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 136 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
OLD | NEW |