OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 virtual ~DriveFileSystemInterface() {} | 148 virtual ~DriveFileSystemInterface() {} |
149 | 149 |
150 // Initializes the object. This function should be called before any | 150 // Initializes the object. This function should be called before any |
151 // other functions. | 151 // other functions. |
152 virtual void Initialize() = 0; | 152 virtual void Initialize() = 0; |
153 | 153 |
154 // Adds and removes the observer. | 154 // Adds and removes the observer. |
155 virtual void AddObserver(DriveFileSystemObserver* observer) = 0; | 155 virtual void AddObserver(DriveFileSystemObserver* observer) = 0; |
156 virtual void RemoveObserver(DriveFileSystemObserver* observer) = 0; | 156 virtual void RemoveObserver(DriveFileSystemObserver* observer) = 0; |
157 | 157 |
158 // Notifies the file system was just mounted. | |
159 virtual void NotifyFileSystemMounted() = 0; | |
160 | |
161 // Notifies the file system is going to be unmounted. | |
162 virtual void NotifyFileSystemToBeUnmounted() = 0; | |
163 | |
164 // Checks for updates on the server. | 158 // Checks for updates on the server. |
165 virtual void CheckForUpdates() = 0; | 159 virtual void CheckForUpdates() = 0; |
166 | 160 |
167 // Finds an entry (file or directory) by using |resource_id|. This call | 161 // Finds an entry (file or directory) by using |resource_id|. This call |
168 // does not initiate content refreshing. | 162 // does not initiate content refreshing. |
169 // | 163 // |
170 // |callback| must not be null. | 164 // |callback| must not be null. |
171 virtual void GetEntryInfoByResourceId( | 165 virtual void GetEntryInfoByResourceId( |
172 const std::string& resource_id, | 166 const std::string& resource_id, |
173 const GetEntryInfoWithFilePathCallback& callback) = 0; | 167 const GetEntryInfoWithFilePathCallback& callback) = 0; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 virtual void GetMetadata( | 420 virtual void GetMetadata( |
427 const GetFilesystemMetadataCallback& callback) = 0; | 421 const GetFilesystemMetadataCallback& callback) = 0; |
428 | 422 |
429 // Reloads the file system feeds from the server. | 423 // Reloads the file system feeds from the server. |
430 virtual void Reload() = 0; | 424 virtual void Reload() = 0; |
431 }; | 425 }; |
432 | 426 |
433 } // namespace drive | 427 } // namespace drive |
434 | 428 |
435 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 429 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
OLD | NEW |