summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/pepper_plugin_delegate_impl.h
blob: 6f54a91294c3353664341f9afde118a719217039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_