OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/host/host_message_context.h" | 5 #include "ppapi/host/host_message_context.h" |
6 | 6 |
7 namespace ppapi { | 7 namespace ppapi { |
8 namespace host { | 8 namespace host { |
9 | 9 |
10 ReplyMessageContext::ReplyMessageContext() { | 10 ReplyMessageContext::ReplyMessageContext() |
11 } | 11 : sync_reply_msg(NULL), routing_id(MSG_ROUTING_NONE) {} |
12 | 12 |
13 ReplyMessageContext::ReplyMessageContext( | 13 ReplyMessageContext::ReplyMessageContext( |
14 const ppapi::proxy::ResourceMessageReplyParams& cp, | 14 const ppapi::proxy::ResourceMessageReplyParams& cp, |
15 IPC::Message* sync_reply_msg, | 15 IPC::Message* sync_reply_msg, |
16 int routing_id) | 16 int routing_id) |
17 : params(cp), | 17 : params(cp), |
18 sync_reply_msg(sync_reply_msg), | 18 sync_reply_msg(sync_reply_msg), |
19 routing_id(routing_id) { | 19 routing_id(routing_id) { |
20 } | 20 } |
21 | 21 |
(...skipping 27 matching lines...) Expand all Loading... |
49 } | 49 } |
50 | 50 |
51 ReplyMessageContext HostMessageContext::MakeReplyMessageContext() const { | 51 ReplyMessageContext HostMessageContext::MakeReplyMessageContext() const { |
52 ppapi::proxy::ResourceMessageReplyParams reply_params(params.pp_resource(), | 52 ppapi::proxy::ResourceMessageReplyParams reply_params(params.pp_resource(), |
53 params.sequence()); | 53 params.sequence()); |
54 return ReplyMessageContext(reply_params, sync_reply_msg, routing_id); | 54 return ReplyMessageContext(reply_params, sync_reply_msg, routing_id); |
55 } | 55 } |
56 | 56 |
57 } // namespace host | 57 } // namespace host |
58 } // namespace ppapi | 58 } // namespace ppapi |
OLD | NEW |