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

Side by Side Diff: ppapi/host/host_message_context.cc

Issue 231883002: Refactor some ResourceMessageReply usages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after great git cl format event. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/host/host_message_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/host/host_message_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698