Chromium Code Reviews| Index: content/renderer/pepper/content_renderer_pepper_host_factory.h |
| diff --git a/content/renderer/pepper/content_renderer_pepper_host_factory.h b/content/renderer/pepper/content_renderer_pepper_host_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9e6172eebe96ae135026c6731ab2a131d3423e08 |
| --- /dev/null |
| +++ b/content/renderer/pepper/content_renderer_pepper_host_factory.h |
| @@ -0,0 +1,34 @@ |
| +// 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 CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ |
| +#define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "ppapi/host/host_factory.h" |
| + |
| +class RenderViewImpl; |
| + |
| +namespace content { |
| + |
| +class ContentRendererPepperHostFactory : public ppapi::host::HostFactory { |
| + public: |
| + ContentRendererPepperHostFactory(RenderViewImpl* render_view); |
|
dmichael (off chromium)
2012/07/02 19:34:57
nit: explicit
brettw
2012/07/03 16:52:54
You always get me on explicit!
dmichael (off chromium)
2012/07/03 17:08:52
I was starting to wonder if you leave them out jus
|
| + virtual ~ContentRendererPepperHostFactory(); |
| + |
| + 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: |
| + RenderViewImpl* render_view_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ |