OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ |
6 #define CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ | 6 #define CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 | 10 |
11 // This class listens for Pepper creation events from the RenderFrame and | 11 // This class listens for Pepper creation events from the RenderFrame and |
12 // attaches the parts required for Chrome-specific plugin support. | 12 // attaches the parts required for Chrome-specific plugin support. |
13 class PepperHelper : public content::RenderFrameObserver { | 13 class PepperHelper : public content::RenderFrameObserver { |
14 public: | 14 public: |
15 explicit PepperHelper(content::RenderFrame* render_frame); | 15 explicit PepperHelper(content::RenderFrame* render_frame); |
16 virtual ~PepperHelper(); | 16 virtual ~PepperHelper(); |
17 | 17 |
18 // RenderFrameObserver. | 18 // RenderFrameObserver. |
19 virtual void DidCreatePepperPlugin(content::RendererPpapiHost* host) OVERRIDE; | 19 virtual void DidCreatePepperPlugin(content::RendererPpapiHost* host) override; |
20 | 20 |
21 private: | 21 private: |
22 DISALLOW_COPY_AND_ASSIGN(PepperHelper); | 22 DISALLOW_COPY_AND_ASSIGN(PepperHelper); |
23 }; | 23 }; |
24 | 24 |
25 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ | 25 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ |
OLD | NEW |