OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_ |
| 6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/file_util_proxy.h" |
| 11 #include "third_party/WebKit/WebKit/chromium/public/WebFileError.h" |
| 12 |
| 13 // Interface for client of FileSystemBackend. |
| 14 class FileSystemBackendClient { |
| 15 public: |
| 16 virtual ~FileSystemBackendClient() {} |
| 17 |
| 18 virtual void DidFail(WebKit::WebFileError status, int request_id) = 0; |
| 19 |
| 20 virtual void DidSucceed(int request_id) = 0; |
| 21 |
| 22 // Info about the file entry such as modification date and size. |
| 23 virtual void DidReadMetadata(const file_util::FileInfo& info, |
| 24 int request_id) = 0; |
| 25 |
| 26 virtual void DidReadDirectory( |
| 27 const std::vector<base::file_util_proxy::Entry>& entries, |
| 28 bool has_more, |
| 29 int request_id) = 0; |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_BACKEND_CLIENT_H_ |
OLD | NEW |