OLD | NEW |
| (Empty) |
1 // Copyright 2015 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. | |
4 | |
5 #include "ipc/brokerable_attachment.h" | |
6 | |
7 #include <stddef.h> | |
8 | |
9 #include "build/build_config.h" | |
10 | |
11 namespace IPC { | |
12 | |
13 // BrokerableAttachment::BrokerableAttachment ---------------------------------- | |
14 | |
15 BrokerableAttachment::BrokerableAttachment() = default; | |
16 | |
17 BrokerableAttachment::~BrokerableAttachment() = default; | |
18 | |
19 bool BrokerableAttachment::NeedsBrokering() const { | |
20 return GetBrokerableType() == PLACEHOLDER; | |
21 } | |
22 | |
23 BrokerableAttachment::Type BrokerableAttachment::GetType() const { | |
24 return TYPE_BROKERABLE_ATTACHMENT; | |
25 } | |
26 | |
27 #if defined(OS_POSIX) | |
28 base::PlatformFile BrokerableAttachment::TakePlatformFile() { | |
29 NOTREACHED(); | |
30 return base::PlatformFile(); | |
31 } | |
32 #endif // OS_POSIX | |
33 | |
34 } // namespace IPC | |
OLD | NEW |