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

Unified Diff: content/browser/renderer_host/pepper/pepper_mojo_host.h

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/browser/renderer_host/pepper/pepper_mojo_host.h
diff --git a/content/browser/renderer_host/pepper/pepper_mojo_host.h b/content/browser/renderer_host/pepper/pepper_mojo_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..779dce646e6d5072d70849986069894a24084a8b
--- /dev/null
+++ b/content/browser/renderer_host/pepper/pepper_mojo_host.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2014 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_
+#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+#include "content/common/mojo/service_registry_impl.h"
+#include "content/public/browser/browser_ppapi_host.h"
+#include "ipc/ipc_message.h"
+#include "mojo/embedder/channel_init.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/host/host_message_context.h"
+#include "ppapi/host/resource_host.h"
+
+namespace content {
+
+class CONTENT_EXPORT PepperMojoHost : public ppapi::host::ResourceHost {
+ public:
+ PepperMojoHost(BrowserPpapiHost* host,
+ PP_Instance instance,
+ PP_Resource resource);
+
+ virtual int32_t OnResourceMessageReceived(
+ const IPC::Message& msg,
+ ppapi::host::HostMessageContext* context) OVERRIDE;
+
+ private:
+ int32_t OnGetHandle(ppapi::host::HostMessageContext* context);
+
+ BrowserPpapiHost* browser_ppapi_host_;
+
+ mojo::embedder::ChannelInit channel_init_;
+ ServiceRegistryImpl service_registry_;
+
+ DISALLOW_COPY_AND_ASSIGN(PepperMojoHost);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_MOJO_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698