Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2337)

Unified Diff: content/renderer/pepper/content_renderer_pepper_host_factory.h

Issue 10578043: Hook up content/renderer to the PPAPI host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698