| Index: ppapi/thunk/ppb_filesystem_provider_api.h
|
| diff --git a/ppapi/thunk/ppb_filesystem_provider_api.h b/ppapi/thunk/ppb_filesystem_provider_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d481af0dafbeb01a3cf0ae1b0b7c0a3bda02fe88
|
| --- /dev/null
|
| +++ b/ppapi/thunk/ppb_filesystem_provider_api.h
|
| @@ -0,0 +1,66 @@
|
| +// Copyright 2015 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 PPB_FILESYSTEM_PROVIDER_API_H
|
| +#define PPB_FILESYSTEM_PROVIDER_API_H
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "ppapi/c/dev/ppb_filesystemprovider_dev.h"
|
| +#include "ppapi/thunk/ppapi_thunk_export.h"
|
| +
|
| +namespace ppapi {
|
| +class TrackedCallback;
|
| +
|
| +namespace thunk {
|
| +
|
| +class PPAPI_THUNK_EXPORT PPB_FilesystemProvider_API {
|
| + public:
|
| + virtual ~PPB_FilesystemProvider_API() {}
|
| +
|
| + virtual int32_t Mount(
|
| + struct PP_Var filesystem_id,
|
| + struct PP_Var display_name,
|
| + PP_Bool writable,
|
| + int32_t opened_files_limit,
|
| + PP_ProviderError_Dev* error,
|
| + scoped_refptr<TrackedCallback> callback)=0;
|
| +
|
| + virtual int32_t Unmount(
|
| + struct PP_Var filesystem_id,
|
| + PP_ProviderError_Dev* error,
|
| + scoped_refptr<TrackedCallback> callback)=0;
|
| +
|
| + virtual int32_t SendSuccessResponse(
|
| + PP_OperationType_Dev operation_type,
|
| + int32_t request_id)=0;
|
| + virtual int32_t SendErrorResponse(
|
| + PP_OperationType_Dev operation_type,
|
| + PP_ProviderError_Dev error,
|
| + int32_t request_id)=0;
|
| +
|
| + virtual int32_t SendMetadataSuccessResponse(
|
| + const struct PP_EntryMetadata_Dev* metadata,
|
| + int32_t request_id)=0;
|
| +
|
| + virtual int32_t SendReadDirectorySuccessResponse(
|
| + uint32_t array_size,
|
| + const struct PP_EntryMetadata_Dev entries[],
|
| + PP_Bool has_more,
|
| + int32_t request_id)=0;
|
| +
|
| + virtual int32_t SendReadFileSuccessResponse(
|
| + uint32_t data_size,
|
| + const void* data,
|
| + PP_Bool has_more,
|
| + int32_t request_id)=0;
|
| + virtual int32_t GetNextRequest( PP_FilesystemRequest* request,
|
| + scoped_refptr<TrackedCallback> callback)=0;
|
| + virtual int32_t FreeWriteRequestBuffer(const void* buffer)=0;
|
| +
|
| +};
|
| +
|
| +} // thunk namespace
|
| +} // ppapi namespace
|
| +
|
| +#endif // PPB_FILESYSTEM_PROVIDER_API_H
|
| +
|
|
|