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