diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 23:55:35 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 23:55:35 +0000 |
commit | e55badb64f610fa03504471ca8edd997a9d3f1b4 (patch) | |
tree | 18337beb82a19166cee0166faf9338124d5d6e78 /chrome/renderer/pepper_plugin_delegate_impl.h | |
parent | 3d7a219946c1f718357d15cddb954cda5f2c92eb (diff) | |
download | chromium_src-e55badb64f610fa03504471ca8edd997a9d3f1b4.zip chromium_src-e55badb64f610fa03504471ca8edd997a9d3f1b4.tar.gz chromium_src-e55badb64f610fa03504471ca8edd997a9d3f1b4.tar.bz2 |
Partially implement the new pepper API in Chrome. This is not actually hooked
up, which will require some changes in render_view as well as the plugin list.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/1697008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/pepper_plugin_delegate_impl.h')
-rw-r--r-- | chrome/renderer/pepper_plugin_delegate_impl.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/renderer/pepper_plugin_delegate_impl.h b/chrome/renderer/pepper_plugin_delegate_impl.h new file mode 100644 index 0000000..6f54a91 --- /dev/null +++ b/chrome/renderer/pepper_plugin_delegate_impl.h @@ -0,0 +1,27 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ +#define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ + +#include "base/basictypes.h" +#include "webkit/glue/plugins/pepper_plugin_delegate.h" + +class RenderView; + +class PepperPluginDelegateImpl : public pepper::PluginDelegate { + public: + explicit PepperPluginDelegateImpl(RenderView* render_view); + + // pepper::PluginDelegate implementation. + virtual PlatformImage2D* CreateImage2D(int width, int height); + + private: + // Pointer to the RenderView that owns us. + RenderView* render_view_; + + DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); +}; + +#endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |