| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/brokerable_attachment.h" | 5 #include "ipc/brokerable_attachment.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "build/build_config.h" |
| 7 #include "ipc/attachment_broker.h" | 10 #include "ipc/attachment_broker.h" |
| 8 | 11 |
| 9 namespace IPC { | 12 namespace IPC { |
| 10 | 13 |
| 11 // BrokerableAttachment::AttachmentId ------------------------------------------ | 14 // BrokerableAttachment::AttachmentId ------------------------------------------ |
| 12 #if !USE_ATTACHMENT_BROKER | 15 #if !USE_ATTACHMENT_BROKER |
| 13 // static | 16 // static |
| 14 BrokerableAttachment::AttachmentId | 17 BrokerableAttachment::AttachmentId |
| 15 BrokerableAttachment::AttachmentId::CreateIdWithRandomNonce() { | 18 BrokerableAttachment::AttachmentId::CreateIdWithRandomNonce() { |
| 16 CHECK(false) << "Platforms that don't support attachment brokering shouldn't " | 19 CHECK(false) << "Platforms that don't support attachment brokering shouldn't " |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 63 } |
| 61 | 64 |
| 62 #if defined(OS_POSIX) | 65 #if defined(OS_POSIX) |
| 63 base::PlatformFile BrokerableAttachment::TakePlatformFile() { | 66 base::PlatformFile BrokerableAttachment::TakePlatformFile() { |
| 64 NOTREACHED(); | 67 NOTREACHED(); |
| 65 return base::PlatformFile(); | 68 return base::PlatformFile(); |
| 66 } | 69 } |
| 67 #endif // OS_POSIX | 70 #endif // OS_POSIX |
| 68 | 71 |
| 69 } // namespace IPC | 72 } // namespace IPC |
| OLD | NEW |