| Index: content/common/fileapi/webfilesystem_callback_adapters.h
|
| diff --git a/content/common/fileapi/webfilesystem_callback_adapters.h b/content/common/fileapi/webfilesystem_callback_adapters.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8f2c69918a5e05787409d6093169e086b7c667a5
|
| --- /dev/null
|
| +++ b/content/common/fileapi/webfilesystem_callback_adapters.h
|
| @@ -0,0 +1,45 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_
|
| +#define CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/files/file_util_proxy.h"
|
| +#include "base/platform_file.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace WebKit {
|
| +class WebFileSystemCallbacks;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +void FileStatusCallbackAdapter(
|
| + WebKit::WebFileSystemCallbacks* callbacks,
|
| + base::PlatformFileError error);
|
| +
|
| +void ReadMetadataCallbackAdapter(
|
| + WebKit::WebFileSystemCallbacks* callbacks,
|
| + const base::PlatformFileInfo& file_info,
|
| + const base::FilePath& platform_path);
|
| +
|
| +void CreateSnapshotFileCallbackAdapter(
|
| + WebKit::WebFileSystemCallbacks* callbacks,
|
| + const base::PlatformFileInfo& file_info,
|
| + const base::FilePath& platform_path);
|
| +
|
| +void ReadDirectoryCallbackAdapater(
|
| + WebKit::WebFileSystemCallbacks* callbacks,
|
| + const std::vector<base::FileUtilProxy::Entry>& entries,
|
| + bool has_more);
|
| +
|
| +void OpenFileSystemCallbackAdapter(
|
| + WebKit::WebFileSystemCallbacks* callbacks,
|
| + const std::string& name, const GURL& root);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_FILEAPI_WEBFILESYSTEM_CALLBACK_ADAPTERS_H_
|
|
|