pepper_helper.h 919 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2012 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. #ifndef SHELL_RENDERER_PEPPER_HELPER_H_
  5. #define SHELL_RENDERER_PEPPER_HELPER_H_
  6. #include "base/compiler_specific.h"
  7. #include "base/component_export.h"
  8. #include "base/macros.h"
  9. #include "content/public/renderer/render_frame_observer.h"
  10. // This class listens for Pepper creation events from the RenderFrame and
  11. // attaches the parts required for plugin support.
  12. class PepperHelper : public content::RenderFrameObserver {
  13. public:
  14. explicit PepperHelper(content::RenderFrame* render_frame);
  15. ~PepperHelper() override;
  16. // RenderFrameObserver.
  17. void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
  18. void OnDestruct() override;
  19. private:
  20. DISALLOW_COPY_AND_ASSIGN(PepperHelper);
  21. };
  22. #endif // SHELL_RENDERER_PEPPER_HELPER_H_