| 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_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |
| 6 #define CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | 6 #define CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 9 #include "ppapi/host/host_factory.h" | 10 #include "ppapi/host/host_factory.h" |
| 10 #include "ppapi/shared_impl/ppapi_permissions.h" | 11 |
| 12 namespace content { |
| 13 class RendererPpapiHost; |
| 14 } |
| 11 | 15 |
| 12 namespace chrome { | 16 namespace chrome { |
| 13 | 17 |
| 14 class PepperInstanceStateAccessor; | |
| 15 | |
| 16 class ChromeRendererPepperHostFactory : public ppapi::host::HostFactory { | 18 class ChromeRendererPepperHostFactory : public ppapi::host::HostFactory { |
| 17 public: | 19 public: |
| 18 ChromeRendererPepperHostFactory(); | 20 explicit ChromeRendererPepperHostFactory(content::RendererPpapiHost* host); |
| 19 virtual ~ChromeRendererPepperHostFactory(); | 21 virtual ~ChromeRendererPepperHostFactory(); |
| 20 | 22 |
| 21 // HostFactory. | 23 // HostFactory. |
| 22 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( | 24 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( |
| 23 ppapi::host::PpapiHost* host, | 25 ppapi::host::PpapiHost* host, |
| 24 const ppapi::proxy::ResourceMessageCallParams& params, | 26 const ppapi::proxy::ResourceMessageCallParams& params, |
| 25 PP_Instance instance, | 27 PP_Instance instance, |
| 26 const IPC::Message& message) OVERRIDE; | 28 const IPC::Message& message) OVERRIDE; |
| 27 | 29 |
| 28 private: | 30 private: |
| 31 // Not owned by this object. |
| 32 content::RendererPpapiHost* host_; |
| 33 |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeRendererPepperHostFactory); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeRendererPepperHostFactory); |
| 30 }; | 35 }; |
| 31 | 36 |
| 32 } // namespace chrome | 37 } // namespace chrome |
| 33 | 38 |
| 34 #endif // CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | 39 #endif // CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |
| OLD | NEW |