diff options
author | sanga@chromium.org <sanga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 16:36:15 +0000 |
---|---|---|
committer | sanga@chromium.org <sanga@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 16:36:15 +0000 |
commit | 4de44a0742ef7d30abbec48399a2a2f814f0b3c0 (patch) | |
tree | 2486f63c5a960469d870ba87c795debce1843ef5 /ppapi | |
parent | 05671a8a7551fc0f1e2d576a2b9bdea61f4167a2 (diff) | |
download | chromium_src-4de44a0742ef7d30abbec48399a2a2f814f0b3c0.zip chromium_src-4de44a0742ef7d30abbec48399a2a2f814f0b3c0.tar.gz chromium_src-4de44a0742ef7d30abbec48399a2a2f814f0b3c0.tar.bz2 |
Removing file io, file ref, and file sytem from dev.
Review URL: http://codereview.chromium.org/7421002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/c/dev/ppb_file_io_dev.h | 15 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_io_trusted_dev.h | 47 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_ref_dev.h | 15 | ||||
-rw-r--r-- | ppapi/c/dev/ppb_file_system_dev.h | 15 | ||||
-rw-r--r-- | ppapi/cpp/dev/file_io_dev.h | 16 | ||||
-rw-r--r-- | ppapi/cpp/dev/file_ref_dev.h | 16 | ||||
-rw-r--r-- | ppapi/cpp/dev/file_system_dev.h | 16 | ||||
-rw-r--r-- | ppapi/ppapi_cpp.gypi | 9 |
8 files changed, 1 insertions, 148 deletions
diff --git a/ppapi/c/dev/ppb_file_io_dev.h b/ppapi/c/dev/ppb_file_io_dev.h deleted file mode 100644 index 3700968..0000000 --- a/ppapi/c/dev/ppb_file_io_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* 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_C_DEV_PPB_FILE_IO_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ - -#include "ppapi/c/ppb_file_io.h" - -#define PPB_FILEIO_DEV_INTERFACE_0_4 "PPB_FileIO(Dev);0.4" -#define PPB_FILEIO_DEV_INTERFACE PPB_FILEIO_DEV_INTERFACE_0_4 - -typedef struct PPB_FileIO PPB_FileIO_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_IO_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_io_trusted_dev.h b/ppapi/c/dev/ppb_file_io_trusted_dev.h deleted file mode 100644 index ed73a6c..0000000 --- a/ppapi/c/dev/ppb_file_io_trusted_dev.h +++ /dev/null @@ -1,47 +0,0 @@ -/* 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_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ - -#include "ppapi/c/pp_resource.h" -#include "ppapi/c/pp_stdint.h" - -struct PP_CompletionCallback; - -#define PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3 "PPB_FileIOTrusted(Dev);0.3" -#define PPB_FILEIOTRUSTED_DEV_INTERFACE PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3 - -// Available only to trusted implementations. -struct PPB_FileIOTrusted_Dev { - // Returns a file descriptor corresponding to the given FileIO object. On - // Windows, returns a HANDLE; on all other platforms, returns a POSIX file - // descriptor. The FileIO object must have been opened with a successful - // call to FileIO::Open. The file descriptor will be closed automatically - // when the FileIO object is closed or destroyed. - int32_t (*GetOSFileDescriptor)(PP_Resource file_io); - - // Notifies the browser that underlying file will be modified. This gives - // the browser the opportunity to apply quota restrictions and possibly - // return an error to indicate that the write is not allowed. - int32_t (*WillWrite)(PP_Resource file_io, - int64_t offset, - int32_t bytes_to_write, - struct PP_CompletionCallback callback); - - // Notifies the browser that underlying file will be modified. This gives - // the browser the opportunity to apply quota restrictions and possibly - // return an error to indicate that the write is not allowed. - int32_t (*WillSetLength)(PP_Resource file_io, - int64_t length, - struct PP_CompletionCallback callback); - - // TODO(darin): Maybe unify the above into a single WillChangeFileSize - // method? The above methods have the advantage of mapping to PPB_FileIO - // Write and SetLength calls. WillChangeFileSize would require the caller to - // compute the file size resulting from a Write call, which may be - // undesirable. -}; - -#endif /* PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_ref_dev.h b/ppapi/c/dev/ppb_file_ref_dev.h deleted file mode 100644 index 31c7327..0000000 --- a/ppapi/c/dev/ppb_file_ref_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* 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_C_DEV_PPB_FILE_REF_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ - -#include "ppapi/c/ppb_file_ref.h" - -#define PPB_FILEREF_DEV_INTERFACE_0_8 "PPB_FileRef(Dev);0.8" -#define PPB_FILEREF_DEV_INTERFACE PPB_FILEREF_DEV_INTERFACE_0_8 - -typedef struct PPB_FileRef PPB_FileRef_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_REF_DEV_H_ */ diff --git a/ppapi/c/dev/ppb_file_system_dev.h b/ppapi/c/dev/ppb_file_system_dev.h deleted file mode 100644 index 32ce3fc..0000000 --- a/ppapi/c/dev/ppb_file_system_dev.h +++ /dev/null @@ -1,15 +0,0 @@ -/* 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_C_DEV_PPB_FILE_SYSTEM_DEV_H_ -#define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ - -#include "ppapi/c/ppb_file_system.h" - -#define PPB_FILESYSTEM_DEV_INTERFACE_0_6 "PPB_FileSystem(Dev);0.6" -#define PPB_FILESYSTEM_DEV_INTERFACE PPB_FILESYSTEM_DEV_INTERFACE_0_6 - -typedef struct PPB_FileSystem PPB_FileSystem_Dev; - -#endif /* PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ */ diff --git a/ppapi/cpp/dev/file_io_dev.h b/ppapi/cpp/dev/file_io_dev.h deleted file mode 100644 index 86555d5..0000000 --- a/ppapi/cpp/dev/file_io_dev.h +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) 2010 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_DEV_FILE_IO_DEV_H_ -#define PPAPI_CPP_DEV_FILE_IO_DEV_H_ - -#include "ppapi/cpp/file_io.h" - -namespace pp { - -typedef FileIO FileIO_Dev; - -} // namespace pp - -#endif // PPAPI_CPP_DEV_FILE_IO_DEV_H_ diff --git a/ppapi/cpp/dev/file_ref_dev.h b/ppapi/cpp/dev/file_ref_dev.h deleted file mode 100644 index 8085faa..0000000 --- a/ppapi/cpp/dev/file_ref_dev.h +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) 2010 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_DEV_FILE_REF_DEV_H_ -#define PPAPI_CPP_DEV_FILE_REF_DEV_H_ - -#include "ppapi/c/ppb_file_ref.h" - -namespace pp { - -typedef FileRef FileRef_Dev; - -} // namespace pp - -#endif // PPAPI_CPP_FILE_REF_H_ diff --git a/ppapi/cpp/dev/file_system_dev.h b/ppapi/cpp/dev/file_system_dev.h deleted file mode 100644 index ab9e81e..0000000 --- a/ppapi/cpp/dev/file_system_dev.h +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) 2010 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_DEV_FILE_SYSTEM_DEV_H_ -#define PPAPI_CPP_DEV_FILE_SYSTEM_DEV_H_ - -#include "ppapi/cpp/file_system.h" - -namespace pp { - -typedef FileSystem FileSystem_Dev; - -} // namespace pp - -#endif // PPAPI_CPP_DEV_FILE_SYSTEM_DEV_H_ diff --git a/ppapi/ppapi_cpp.gypi b/ppapi/ppapi_cpp.gypi index 9db2158..f62732a 100644 --- a/ppapi/ppapi_cpp.gypi +++ b/ppapi/ppapi_cpp.gypi @@ -51,7 +51,6 @@ # Dev interfaces. 'c/dev/pp_cursor_type_dev.h', - 'c/dev/pp_file_info_dev.h', 'c/dev/pp_graphics_3d_dev.h', 'c/dev/pp_video_dev.h', 'c/dev/ppb_buffer_dev.h', @@ -62,10 +61,6 @@ 'c/dev/ppb_cursor_control_dev.h', 'c/dev/ppb_directory_reader_dev.h', 'c/dev/ppb_file_chooser_dev.h', - 'c/dev/ppb_file_io_dev.h', - 'c/dev/ppb_file_io_trusted_dev.h', - 'c/dev/ppb_file_ref_dev.h', - 'c/dev/ppb_file_system_dev.h', 'c/dev/ppb_find_dev.h', 'c/dev/ppb_font_dev.h', 'c/dev/ppb_fullscreen_dev.h', @@ -113,6 +108,7 @@ 'c/trusted/ppb_audio_trusted.h', 'c/trusted/ppb_broker_trusted.h', 'c/trusted/ppb_buffer_trusted.h', + 'c/trusted/ppb_file_io_trusted.h', 'c/trusted/ppb_image_data_trusted.h', 'c/trusted/ppb_url_loader_trusted.h', 'c/trusted/ppp_broker.h', @@ -192,9 +188,6 @@ 'cpp/dev/directory_reader_dev.h', 'cpp/dev/file_chooser_dev.cc', 'cpp/dev/file_chooser_dev.h', - 'cpp/dev/file_io_dev.h', - 'cpp/dev/file_ref_dev.h', - 'cpp/dev/file_system_dev.h', 'cpp/dev/find_dev.cc', 'cpp/dev/find_dev.h', 'cpp/dev/font_dev.cc', |