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 CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/weak_ptr.h" | 9 #include "base/weak_ptr.h" |
10 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 10 #include "webkit/glue/plugins/pepper_plugin_delegate.h" |
| 11 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
11 | 12 |
12 class RenderView; | 13 class RenderView; |
13 | 14 |
14 class PepperPluginDelegateImpl | 15 class PepperPluginDelegateImpl |
15 : public pepper::PluginDelegate, | 16 : public pepper::PluginDelegate, |
16 public base::SupportsWeakPtr<PepperPluginDelegateImpl> { | 17 public base::SupportsWeakPtr<PepperPluginDelegateImpl> { |
17 public: | 18 public: |
18 explicit PepperPluginDelegateImpl(RenderView* render_view); | 19 explicit PepperPluginDelegateImpl(RenderView* render_view); |
19 | 20 |
20 // pepper::PluginDelegate implementation. | 21 // pepper::PluginDelegate implementation. |
21 virtual PlatformImage2D* CreateImage2D(int width, int height); | 22 virtual PlatformImage2D* CreateImage2D(int width, int height); |
22 | 23 |
23 private: | 24 private: |
24 // Pointer to the RenderView that owns us. | 25 // Pointer to the RenderView that owns us. |
25 RenderView* render_view_; | 26 RenderView* render_view_; |
26 | 27 |
27 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 28 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
28 }; | 29 }; |
29 | 30 |
30 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 31 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |