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

Unified Diff: ppapi/proxy/mojo_resource.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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/mojo_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/mojo_resource.h
diff --git a/ppapi/proxy/mojo_resource.h b/ppapi/proxy/mojo_resource.h
new file mode 100644
index 0000000000000000000000000000000000000000..a87d4e2c6685819a26c761cb04fb5703be8a1db8
--- /dev/null
+++ b/ppapi/proxy/mojo_resource.h
@@ -0,0 +1,39 @@
+// 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 PPAPI_PROXY_MOJO_RESOURCE_H_
+#define PPAPI_PROXY_MOJO_RESOURCE_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/proxy/plugin_resource.h"
+#include "ppapi/proxy/ppapi_proxy_export.h"
+#include "ppapi/thunk/ppb_mojo_api.h"
+
+namespace ppapi {
+namespace proxy {
+
+class PPAPI_PROXY_EXPORT MojoResource
+ : public PluginResource,
+ public thunk::PPB_Mojo_API {
+ public:
+ MojoResource(Connection connection, PP_Instance instance);
+ virtual ~MojoResource();
+
+ // Resource implementation
+ virtual thunk::PPB_Mojo_API* AsPPB_Mojo_API() OVERRIDE;
+
+ // PPB_Mojo_API
+ virtual int32_t GetHandle(PP_Instance instance,
+ uint32_t* out_mojo_handle,
+ scoped_refptr<TrackedCallback> callback);
+ private:
+ void GetHandleComplete(uint32_t* out_mojo_handle,
+ scoped_refptr<TrackedCallback> callback,
+ const ResourceMessageReplyParams& params);
+};
+
+} // namespace proxy
+} // namespace ppapi
+
+#endif // PPAPI_PROXY_MOJO_RESOURCE_H_
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/mojo_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698