Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9341)

Unified Diff: chrome/browser/chromeos/drive/drive_file_system_interface.h

Issue 14348016: chromeos: Add DriveFileSystem::Pin/Unpin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetEntryInfoByPathSync Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/drive_file_system_interface.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system_interface.h b/chrome/browser/chromeos/drive/drive_file_system_interface.h
index 7ae18dd7a6fb6754861d3a60d744283f709b2379..354b7dadcd9add01cffd461e67db1c8fea59cf5b 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_interface.h
+++ b/chrome/browser/chromeos/drive/drive_file_system_interface.h
@@ -282,6 +282,18 @@ class DriveFileSystemInterface {
bool is_exclusive,
const FileOperationCallback& callback) = 0;
+ // Pins a file at |file_path|.
+ //
+ // |callback| must not be null.
+ virtual void Pin(const base::FilePath& file_path,
+ const FileOperationCallback& callback) = 0;
+
+ // Unpins a file at |file_path|.
+ //
+ // |callback| must not be null.
+ virtual void Unpin(const base::FilePath& file_path,
+ const FileOperationCallback& callback) = 0;
+
// Gets |file_path| from the file system. The file entry represented by
// |file_path| needs to be present in in-memory representation of the file
// system in order to be retrieved. If the file is not cached, the file
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system.cc ('k') | chrome/browser/chromeos/drive/drive_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698