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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // function is no-op if these mount points are already present. | 83 // function is no-op if these mount points are already present. |
84 void AddSystemMountPoints(); | 84 void AddSystemMountPoints(); |
85 | 85 |
86 // Returns true if CrosMountpointProvider can handle |url|, i.e. its | 86 // Returns true if CrosMountpointProvider can handle |url|, i.e. its |
87 // file system type matches with what this provider supports. | 87 // file system type matches with what this provider supports. |
88 // This could be called on any threads. | 88 // This could be called on any threads. |
89 static bool CanHandleURL(const fileapi::FileSystemURL& url); | 89 static bool CanHandleURL(const fileapi::FileSystemURL& url); |
90 | 90 |
91 // fileapi::FileSystemBackend overrides. | 91 // fileapi::FileSystemBackend overrides. |
92 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; | 92 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; |
| 93 virtual void Initialize(const fileapi::FileSystemContext* context) OVERRIDE; |
93 virtual void InitializeFileSystem( | 94 virtual void InitializeFileSystem( |
94 const GURL& origin_url, | 95 const GURL& origin_url, |
95 fileapi::FileSystemType type, | 96 fileapi::FileSystemType type, |
96 fileapi::OpenFileSystemMode mode, | 97 fileapi::OpenFileSystemMode mode, |
97 fileapi::FileSystemContext* context, | 98 fileapi::FileSystemContext* context, |
98 const InitializeFileSystemCallback& callback) OVERRIDE; | 99 const InitializeFileSystemCallback& callback) OVERRIDE; |
99 virtual fileapi::FileSystemFileUtil* GetFileUtil( | 100 virtual fileapi::FileSystemFileUtil* GetFileUtil( |
100 fileapi::FileSystemType type) OVERRIDE; | 101 fileapi::FileSystemType type) OVERRIDE; |
101 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 102 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
102 fileapi::FileSystemType type) OVERRIDE; | 103 fileapi::FileSystemType type) OVERRIDE; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // Globally visible mount points. System MountPonts instance should outlive | 160 // Globally visible mount points. System MountPonts instance should outlive |
160 // all FileSystemBackend instances, so raw pointer is safe. | 161 // all FileSystemBackend instances, so raw pointer is safe. |
161 fileapi::ExternalMountPoints* system_mount_points_; | 162 fileapi::ExternalMountPoints* system_mount_points_; |
162 | 163 |
163 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); | 164 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); |
164 }; | 165 }; |
165 | 166 |
166 } // namespace chromeos | 167 } // namespace chromeos |
167 | 168 |
168 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |