1 // Copyright (c) 2011 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.
5 #include "ppapi/shared_impl/platform_file.h"
9 // TODO(piman/brettw): Change trusted interface to return a PP_FileHandle,
10 // those casts are ugly.
11 base::PlatformFile
IntToPlatformFile(int32_t handle
) {
13 return reinterpret_cast<HANDLE
>(static_cast<intptr_t>(handle
));
14 #elif defined(OS_POSIX)
17 #error Not implemented.
21 int32_t PlatformFileToInt(base::PlatformFile handle
) {
23 return static_cast<int32_t>(reinterpret_cast<intptr_t>(handle
));
24 #elif defined(OS_POSIX)
27 #error Not implemented.