summaryrefslogtreecommitdiffstats
path: root/ppapi/host/host_message_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/host/host_message_context.cc')
-rw-r--r--ppapi/host/host_message_context.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/ppapi/host/host_message_context.cc b/ppapi/host/host_message_context.cc
new file mode 100644
index 0000000..5c1c0d1
--- /dev/null
+++ b/ppapi/host/host_message_context.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "ppapi/host/host_message_context.h"
+
+namespace ppapi {
+namespace host {
+
+HostMessageContext::HostMessageContext(
+ const ppapi::proxy::ResourceMessageCallParams& cp)
+ : params(cp) {
+}
+
+HostMessageContext::~HostMessageContext() {
+}
+
+ppapi::proxy::ResourceMessageReplyParams HostMessageContext::MakeReplyParams() {
+ return ppapi::proxy::ResourceMessageReplyParams(params.pp_resource(),
+ params.sequence());
+}
+
+} // namespace host
+} // namespace ppapi