Remove kSyncUsingSecondaryPassphrase.
[chromium-blink-merge.git] / ppapi / host / host_message_context.cc
blobc60b8a323211b5d4d9527551ce0b7170b420a1b1
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
3 // found in the LICENSE file.
5 #include "ppapi/host/host_message_context.h"
7 namespace ppapi {
8 namespace host {
10 ReplyMessageContext::ReplyMessageContext()
11 : sync_reply_msg(NULL), routing_id(MSG_ROUTING_NONE) {}
13 ReplyMessageContext::ReplyMessageContext(
14 const ppapi::proxy::ResourceMessageReplyParams& cp,
15 IPC::Message* sync_reply_msg,
16 int routing_id)
17 : params(cp),
18 sync_reply_msg(sync_reply_msg),
19 routing_id(routing_id) {
22 ReplyMessageContext::~ReplyMessageContext() {
25 HostMessageContext::HostMessageContext(
26 const ppapi::proxy::ResourceMessageCallParams& cp)
27 : params(cp),
28 sync_reply_msg(NULL),
29 routing_id(MSG_ROUTING_NONE) {
32 HostMessageContext::HostMessageContext(
33 int routing_id,
34 const ppapi::proxy::ResourceMessageCallParams& cp)
35 : params(cp),
36 sync_reply_msg(NULL),
37 routing_id(routing_id) {
40 HostMessageContext::HostMessageContext(
41 const ppapi::proxy::ResourceMessageCallParams& cp,
42 IPC::Message* reply_msg)
43 : params(cp),
44 sync_reply_msg(reply_msg),
45 routing_id(MSG_ROUTING_NONE) {
48 HostMessageContext::~HostMessageContext() {
51 ReplyMessageContext HostMessageContext::MakeReplyMessageContext() const {
52 ppapi::proxy::ResourceMessageReplyParams reply_params(params.pp_resource(),
53 params.sequence());
54 return ReplyMessageContext(reply_params, sync_reply_msg, routing_id);
57 } // namespace host
58 } // namespace ppapi