| Index: chrome/browser/file_system/file_system_backend_client.h
|
| ===================================================================
|
| --- chrome/browser/file_system/file_system_backend_client.h (revision 0)
|
| +++ chrome/browser/file_system/file_system_backend_client.h (revision 0)
|
| @@ -0,0 +1,32 @@
|
| +// 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 CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_
|
| +#define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "base/file_util_proxy.h"
|
| +#include "third_party/WebKit/WebKit/chromium/public/WebFileError.h"
|
| +
|
| +// Interface for client of FileSystemBackend.
|
| +class FileSystemBackendClient {
|
| + public:
|
| + virtual ~FileSystemBackendClient() {}
|
| +
|
| + virtual void DidFail(WebKit::WebFileError status, int request_id) = 0;
|
| +
|
| + virtual void DidSucceed(int request_id) = 0;
|
| +
|
| + // Info about the file entry such as modification date and size.
|
| + virtual void DidReadMetadata(const file_util::FileInfo& info,
|
| + int request_id) = 0;
|
| +
|
| + virtual void DidReadDirectory(
|
| + const std::vector<base::file_util_proxy::Entry>& entries,
|
| + bool has_more,
|
| + int request_id) = 0;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_
|
|
|