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

Side by Side Diff: ipc/ipc_mojo_handle_attachment.cc

Issue 2494943002: Remove IPC::BrokerableAttachment. (Closed)
Patch Set: extra test output Created 4 years, 1 month 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_handle_attachment.h ('k') | ipc/ipc_mojo_message_helper.cc » ('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/ipc_mojo_handle_attachment.h" 5 #include "ipc/ipc_mojo_handle_attachment.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 namespace IPC { 11 namespace IPC {
12 namespace internal { 12 namespace internal {
13 13
14 MojoHandleAttachment::MojoHandleAttachment(mojo::ScopedHandle handle) 14 MojoHandleAttachment::MojoHandleAttachment(mojo::ScopedHandle handle)
15 : handle_(std::move(handle)) {} 15 : handle_(std::move(handle)) {}
16 16
17 MojoHandleAttachment::~MojoHandleAttachment() { 17 MojoHandleAttachment::~MojoHandleAttachment() {
18 } 18 }
19 19
20 MessageAttachment::Type MojoHandleAttachment::GetType() const { 20 MessageAttachment::Type MojoHandleAttachment::GetType() const {
21 return TYPE_MOJO_HANDLE; 21 return Type::MOJO_HANDLE;
22 } 22 }
23 23
24 #if defined(OS_POSIX)
25 base::PlatformFile MojoHandleAttachment::TakePlatformFile() {
26 NOTREACHED();
27 return base::kInvalidPlatformFile;
28 }
29 #endif // OS_POSIX
30
31 mojo::ScopedHandle MojoHandleAttachment::TakeHandle() { 24 mojo::ScopedHandle MojoHandleAttachment::TakeHandle() {
32 return std::move(handle_); 25 return std::move(handle_);
33 } 26 }
34 27
35 } // namespace internal 28 } // namespace internal
36 } // namespace IPC 29 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_mojo_handle_attachment.h ('k') | ipc/ipc_mojo_message_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698