OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "webkit/common/fileapi/file_system_types.h" | 11 #include "webkit/common/fileapi/file_system_types.h" |
11 | 12 |
| 13 class GURL; |
| 14 |
12 namespace base { | 15 namespace base { |
13 class Time; | 16 class Time; |
14 } // namespace base | 17 } // namespace base |
15 | 18 |
16 namespace storage { | 19 namespace storage { |
17 class AsyncFileUtil; | 20 class AsyncFileUtil; |
18 class FileSystemContext; | 21 class FileSystemContext; |
19 class FileStreamReader; | 22 class FileStreamReader; |
20 class FileSystemURL; | 23 class FileSystemURL; |
21 class FileStreamWriter; | 24 class FileStreamWriter; |
(...skipping 26 matching lines...) Expand all Loading... |
48 // Called from FileSystemBackend::CreateFileStreamWriter(). | 51 // Called from FileSystemBackend::CreateFileStreamWriter(). |
49 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( | 52 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( |
50 const storage::FileSystemURL& url, | 53 const storage::FileSystemURL& url, |
51 int64 offset, | 54 int64 offset, |
52 storage::FileSystemContext* context) = 0; | 55 storage::FileSystemContext* context) = 0; |
53 | 56 |
54 // Called from the FileSystemWatcherService class. The returned pointer must | 57 // Called from the FileSystemWatcherService class. The returned pointer must |
55 // stay valid until shutdown. | 58 // stay valid until shutdown. |
56 virtual storage::WatcherManager* GetWatcherManager( | 59 virtual storage::WatcherManager* GetWatcherManager( |
57 const storage::FileSystemURL& url) = 0; | 60 const storage::FileSystemURL& url) = 0; |
| 61 |
| 62 // Called from FileSystemBackend::GetAlternativeURL. |
| 63 virtual void GetAlternativeURL( |
| 64 const storage::FileSystemURL& url, |
| 65 base::Callback<void(const GURL& url)> callback) = 0; |
58 }; | 66 }; |
59 | 67 |
60 } // namespace chromeos | 68 } // namespace chromeos |
61 | 69 |
62 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 70 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
OLD | NEW |