Commit d4be2e3f authored by jvoung@google.com's avatar jvoung@google.com

Factor out PP_FileHandle from ppb_flash_file into its

own pp_file_handle{.h,idl}.

BUG= none
TEST= trybots

Review URL: https://chromiumcodereview.appspot.com/10824048

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148849 0039d316-1c4b-4281-b951-d872f2087c98
parent 099769c8
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* This file provides support for native OS file handles.
*/
#inline c
#ifdef _WIN32
#include<windows.h>
typedef HANDLE PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = NULL;
#else
typedef int PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = -1;
#endif
#endinl
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* From private/pp_file_handle.idl modified Thu Jul 26 10:46:37 2012. */
#ifndef PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_
#define PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_
#include "ppapi/c/pp_macros.h"
/**
* @file
* This file provides support for native OS file handles.
*/
#ifdef _WIN32
#include<windows.h>
typedef HANDLE PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = NULL;
#else
typedef int PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = -1;
#endif
#endif /* PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_ */
......@@ -5,21 +5,10 @@
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_
#define PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_
#ifdef _WIN32
#include <windows.h>
#endif
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#ifdef _WIN32
typedef HANDLE PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = NULL;
#else
typedef int PP_FileHandle;
static const PP_FileHandle PP_kInvalidFileHandle = -1;
#endif
#include "ppapi/c/private/pp_file_handle.h"
struct PP_FileInfo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment