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_GDATA_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 | 10 |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 const tracked_objects::Location& from_here, | 1207 const tracked_objects::Location& from_here, |
1208 const base::Closure& task); | 1208 const base::Closure& task); |
1209 | 1209 |
1210 // Similar to PostBlockingPoolSequencedTask() but this one takes a reply | 1210 // Similar to PostBlockingPoolSequencedTask() but this one takes a reply |
1211 // callback that runs on the calling thread. | 1211 // callback that runs on the calling thread. |
1212 void PostBlockingPoolSequencedTaskAndReply( | 1212 void PostBlockingPoolSequencedTaskAndReply( |
1213 const tracked_objects::Location& from_here, | 1213 const tracked_objects::Location& from_here, |
1214 const base::Closure& request_task, | 1214 const base::Closure& request_task, |
1215 const base::Closure& reply_task); | 1215 const base::Closure& reply_task); |
1216 | 1216 |
1217 // Helper function used to perform file search on the calling thread of | 1217 // Helper function used to perform synchronous file search on UI thread. |
1218 // FindEntryByPath() request. | 1218 void FindEntryByPathSyncOnUIThread(const FilePath& search_file_path, |
1219 void FindEntryByPathOnCallingThread(const FilePath& search_file_path, | 1219 const FindEntryCallback& callback); |
1220 const FindEntryCallback& callback); | |
1221 | 1220 |
1222 void OnSetPinStateCompleted(const FileOperationCallback& callback, | 1221 void OnSetPinStateCompleted(const FileOperationCallback& callback, |
1223 base::PlatformFileError error, | 1222 base::PlatformFileError error, |
1224 const std::string& resource_id, | 1223 const std::string& resource_id, |
1225 const std::string& md5); | 1224 const std::string& md5); |
1226 | 1225 |
1227 // Changes state of hosted documents visibility, triggers directory refresh. | 1226 // Changes state of hosted documents visibility, triggers directory refresh. |
1228 void SetHideHostedDocuments(bool hide); | 1227 void SetHideHostedDocuments(bool hide); |
1229 | 1228 |
1230 // Initializes preference change observer. | 1229 // Initializes preference change observer. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 }; | 1344 }; |
1346 | 1345 |
1347 // Sets the free disk space getter for testing. | 1346 // Sets the free disk space getter for testing. |
1348 // The existing getter is deleted. | 1347 // The existing getter is deleted. |
1349 void SetFreeDiskSpaceGetterForTesting( | 1348 void SetFreeDiskSpaceGetterForTesting( |
1350 FreeDiskSpaceGetterInterface* getter); | 1349 FreeDiskSpaceGetterInterface* getter); |
1351 | 1350 |
1352 } // namespace gdata | 1351 } // namespace gdata |
1353 | 1352 |
1354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 1353 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
OLD | NEW |