Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 5 #ifndef CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | |
| 6 #define CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "ppapi/host/host_factory.h" | |
| 10 #include "ppapi/shared_impl/ppapi_permissions.h" | |
| 11 | |
| 12 namespace chrome { | |
| 13 | |
| 14 class PepperInstanceStateAccessor; | |
| 15 | |
| 16 class ChromeRendererPepperHostFactory | |
| 17 : public ppapi::host::HostFactory { | |
|
dmichael (off chromium)
2012/07/25 16:57:27
nit: it looks like your base class could fit on th
| |
| 18 public: | |
| 19 explicit ChromeRendererPepperHostFactory(); | |
|
dmichael (off chromium)
2012/07/25 16:57:27
nit: explicit is unnecessary
| |
| 20 virtual ~ChromeRendererPepperHostFactory(); | |
| 21 | |
| 22 // HostFactory. | |
| 23 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( | |
| 24 ppapi::host::PpapiHost* host, | |
| 25 const ppapi::proxy::ResourceMessageCallParams& params, | |
| 26 PP_Instance instance, | |
| 27 const IPC::Message& message) OVERRIDE; | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(ChromeRendererPepperHostFactory); | |
| 31 }; | |
| 32 | |
| 33 } // namespace chrome | |
| 34 | |
| 35 #endif // CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ | |
| OLD | NEW |