- add sources.
[platform/framework/web/crosswalk.git] / src / mojo / system / platform_channel_handle.h
1 // Copyright 2013 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 #ifndef MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_
6 #define MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_
7
8 #include "build/build_config.h"
9
10 namespace mojo {
11 namespace system {
12
13 #if defined(OS_POSIX)
14 struct PlatformChannelHandle {
15   explicit PlatformChannelHandle(int fd) : fd(fd) {}
16
17   int fd;
18 };
19 #else
20 #error "Platform not yet supported."
21 #endif
22
23 }  // namespace system
24 }  // namespace mojo
25
26 #endif  // MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_