| 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_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
| 10 | 10 |
| 11 namespace chrome { | 11 namespace chrome { |
| 12 | 12 |
| 13 // This class listens for Pepper creation events from the RenderView and | 13 // This class listens for Pepper creation events from the RenderView and |
| 14 // attaches the parts required for Chrome-specific plugin support. | 14 // attaches the parts required for Chrome-specific plugin support. |
| 15 class PepperHelper : public content::RenderViewObserver { | 15 class PepperHelper : public content::RenderViewObserver { |
| 16 public: | 16 public: |
| 17 explicit PepperHelper(content::RenderView* render_view); | 17 explicit PepperHelper(content::RenderView* render_view); |
| 18 virtual ~PepperHelper(); | 18 virtual ~PepperHelper(); |
| 19 | 19 |
| 20 // RenderViewObserver. | 20 // RenderViewObserver. |
| 21 virtual void DidCreatePepperPlugin(ppapi::host::PpapiHost* host) OVERRIDE; | 21 virtual void DidCreatePepperPlugin(content::RendererPpapiHost* host) OVERRIDE; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(PepperHelper); | 24 DISALLOW_COPY_AND_ASSIGN(PepperHelper); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace chrome | 27 } // namespace chrome |
| 28 | 28 |
| 29 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ | 29 #endif // CHROME_RENDERER_PEPPER_PEPPER_HELPER_H_ |
| OLD | NEW |