diff options
author | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 23:26:56 +0000 |
---|---|---|
committer | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 23:26:56 +0000 |
commit | 6c8011ba4444175246f07a70db95806bdfbf3562 (patch) | |
tree | c1cbe947dd29368206919746313e172a284cc66c /ppapi/cpp/trusted/file_io_trusted.h | |
parent | e7c2e57b18604ee0b05c7203b8088f21a85710e8 (diff) | |
download | chromium_src-6c8011ba4444175246f07a70db95806bdfbf3562.zip chromium_src-6c8011ba4444175246f07a70db95806bdfbf3562.tar.gz chromium_src-6c8011ba4444175246f07a70db95806bdfbf3562.tar.bz2 |
Add FileIOTrusted class.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8965007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/trusted/file_io_trusted.h')
-rw-r--r-- | ppapi/cpp/trusted/file_io_trusted.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ppapi/cpp/trusted/file_io_trusted.h b/ppapi/cpp/trusted/file_io_trusted.h new file mode 100644 index 0000000..3ba2140 --- /dev/null +++ b/ppapi/cpp/trusted/file_io_trusted.h @@ -0,0 +1,36 @@ +// Copyright (c) 2011 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. + +#ifndef PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_ +#define PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_ + +#include <string> + +#include "ppapi/c/pp_stdint.h" + +namespace pp { + +class FileIO; +class CompletionCallback; + +class FileIO_Trusted { + public: + /// Creates a FileIO_Trusted object. + FileIO_Trusted(); + + int32_t GetOSFileDescriptor(const FileIO& file_io); + + int32_t WillWrite(const FileIO& file_io, + int64_t offset, + int32_t bytes_to_write, + const CompletionCallback& callback); + + int32_t WillSetLength(const FileIO& file_io, + int64_t length, + const CompletionCallback& callback); +}; + +} // namespace pp + +#endif // PPAPI_CPP_TRUSTED_FILE_IO_TRUSTED_H_ |