[M108 Aura Migration][NaCl][PPFW] Fix memory leaks when reloading iframe
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / renderer / pepper / pepper_helper.h
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.
5
6 #ifndef RENDERER_PEPPER_PEPPER_HELPER_H_
7 #define RENDERER_PEPPER_PEPPER_HELPER_H_
8
9 #include "base/compiler_specific.h"
10 #include "content/public/renderer/render_frame_observer.h"
11
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.
15 namespace pepper {
16
17 class PepperHelper : public content::RenderFrameObserver {
18  public:
19   explicit PepperHelper(content::RenderFrame* render_frame);
20   ~PepperHelper() override;
21
22   // RenderFrameObserver.
23   void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
24
25   void OnDestruct() override;
26 };
27 }  // namespace pepper
28 #endif  // RENDERER_PEPPER_PEPPER_HELPER_H_