1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Copyright 2016 Samsung Electronics. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 #ifndef RENDERER_PEPPER_PEPPER_HELPER_H_
7 #define RENDERER_PEPPER_PEPPER_HELPER_H_
9 #include "base/compiler_specific.h"
10 #include "content/public/renderer/render_frame_observer.h"
12 // Copied from chrome/renderer/pepper with minor modifications.
13 // This class listens for Pepper creation events from the RenderFrame and
14 // attaches the parts required for EFL-specific plugin support.
17 class PepperHelper : public content::RenderFrameObserver {
19 explicit PepperHelper(content::RenderFrame* render_frame);
20 ~PepperHelper() override;
22 // RenderFrameObserver.
23 void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
25 void OnDestruct() override;
28 #endif // RENDERER_PEPPER_PEPPER_HELPER_H_