Chromium Code Reviews| Index: chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h |
| diff --git a/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h b/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..46813b1481bef21c0e6ee3706f4e680a06d506bc |
| --- /dev/null |
| +++ b/chrome/renderer/pepper/chrome_renderer_pepper_host_factory.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |
| +#define CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "ppapi/host/host_factory.h" |
| +#include "ppapi/shared_impl/ppapi_permissions.h" |
| + |
| +namespace chrome { |
| + |
| +class PepperInstanceStateAccessor; |
| + |
| +class ChromeRendererPepperHostFactory |
| + : public ppapi::host::HostFactory { |
|
dmichael (off chromium)
2012/07/25 16:57:27
nit: it looks like your base class could fit on th
|
| + public: |
| + explicit ChromeRendererPepperHostFactory(); |
|
dmichael (off chromium)
2012/07/25 16:57:27
nit: explicit is unnecessary
|
| + virtual ~ChromeRendererPepperHostFactory(); |
| + |
| + // HostFactory. |
| + virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( |
| + ppapi::host::PpapiHost* host, |
| + const ppapi::proxy::ResourceMessageCallParams& params, |
| + PP_Instance instance, |
| + const IPC::Message& message) OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ChromeRendererPepperHostFactory); |
| +}; |
| + |
| +} // namespace chrome |
| + |
| +#endif // CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_ |