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

Unified Diff: chrome/browser/chromeos/drive/drive_file_system.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_file_system.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system.h b/chrome/browser/chromeos/drive/drive_file_system.h
index 32a17715e37ee3145f5b2b6f101890d23d8a3625..c4346b7f2f9bfa6c6d694350ac21dd662ee2c522 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.h
+++ b/chrome/browser/chromeos/drive/drive_file_system.h
@@ -106,6 +106,10 @@ class DriveFileSystem : public DriveFileSystemInterface,
virtual void CreateFile(const base::FilePath& file_path,
bool is_exclusive,
const FileOperationCallback& callback) OVERRIDE;
+ virtual void Pin(const base::FilePath& file_path,
+ const FileOperationCallback& callback) OVERRIDE;
+ virtual void Unpin(const base::FilePath& file_path,
+ const FileOperationCallback& callback) OVERRIDE;
virtual void GetFileByPath(const base::FilePath& file_path,
const GetFileCallback& callback) OVERRIDE;
virtual void GetFileByResourceId(
@@ -210,12 +214,16 @@ class DriveFileSystem : public DriveFileSystemInterface,
const FileOperationCallback& callback,
DriveFileError result,
scoped_ptr<DriveEntryProto> entry_proto);
- void DoUploadForCreateBrandNewFile(const base::FilePath& remote_path,
- base::FilePath* local_path,
- const FileOperationCallback& callback);
- void DidUploadForCreateBrandNewFile(const base::FilePath& local_path,
- const FileOperationCallback& callback,
- DriveFileError result);
+
+ // Used to implement Pin().
+ void PinAfterGetEntryInfoByPath(const FileOperationCallback& callback,
+ DriveFileError error,
+ scoped_ptr<DriveEntryProto> entry);
+
+ // Used to implement Unpin().
+ void UnpinAfterGetEntryInfoByPath(const FileOperationCallback& callback,
+ DriveFileError error,
+ scoped_ptr<DriveEntryProto> entry);
// Invoked upon completion of GetEntryInfoByPath initiated by
// GetFileByPath. It then continues to invoke GetResolvedFileByPath.
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698