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 #ifndef PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_
6 #define PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_
10 #include "ppapi/c/pp_stdint.h"
15 class CompletionCallback
;
17 class FileIO_Trusted
{
19 /// Creates a FileIO_Trusted object.
22 int32_t GetOSFileDescriptor(const FileIO
& file_io
);
24 int32_t WillWrite(const FileIO
& file_io
,
26 int32_t bytes_to_write
,
27 const CompletionCallback
& callback
);
29 int32_t WillSetLength(const FileIO
& file_io
,
31 const CompletionCallback
& callback
);
36 #endif // PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_