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

Side by Side Diff: ipc/ipc_mojo_message_helper.cc

Issue 2069803003: Fold //ipc/mojo into //ipc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-ipc-deps
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ipc/ipc_mojo_message_helper.h ('k') | ipc/ipc_mojo_param_traits.h » ('j') | 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "ipc/mojo/ipc_mojo_message_helper.h" 5 #include "ipc/ipc_mojo_message_helper.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ipc/mojo/ipc_mojo_handle_attachment.h" 9 #include "ipc/ipc_mojo_handle_attachment.h"
10 10
11 namespace IPC { 11 namespace IPC {
12 12
13 // static 13 // static
14 bool MojoMessageHelper::WriteMessagePipeTo( 14 bool MojoMessageHelper::WriteMessagePipeTo(
15 base::Pickle* message, 15 base::Pickle* message,
16 mojo::ScopedMessagePipeHandle handle) { 16 mojo::ScopedMessagePipeHandle handle) {
17 message->WriteAttachment(new internal::MojoHandleAttachment( 17 message->WriteAttachment(new internal::MojoHandleAttachment(
18 mojo::ScopedHandle::From(std::move(handle)))); 18 mojo::ScopedHandle::From(std::move(handle))));
19 return true; 19 return true;
(...skipping 22 matching lines...) Expand all
42 ->TakeHandle() 42 ->TakeHandle()
43 .release() 43 .release()
44 .value())); 44 .value()));
45 return true; 45 return true;
46 } 46 }
47 47
48 MojoMessageHelper::MojoMessageHelper() { 48 MojoMessageHelper::MojoMessageHelper() {
49 } 49 }
50 50
51 } // namespace IPC 51 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_mojo_message_helper.h ('k') | ipc/ipc_mojo_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698