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

Unified Diff: chrome/browser/drive/drive_service_interface.h

Issue 140513008: drive: Allow setting modified/accessed date with AddNewDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/drive_service_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_service_interface.h
diff --git a/chrome/browser/drive/drive_service_interface.h b/chrome/browser/drive/drive_service_interface.h
index 9a2ed097c57632c23c8e2293fa4f2851879dcd11..0443ff9bfbc3368137adb0e443afe739cf0e7bd6 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -42,6 +42,20 @@ class DriveServiceObserver {
// URLFetcher that runs on UI thread.
class DriveServiceInterface {
public:
+ // Optional parameters for AddNewDirectory().
+ struct AddNewDirectoryOptions {
+ AddNewDirectoryOptions();
+ ~AddNewDirectoryOptions();
+
+ // modified_date of the directory.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time modified_date;
+
+ // last_viewed_by_me_date of the directory.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time last_viewed_by_me_date;
+ };
+
// Optional parameters for InitiateUploadNewFile().
struct InitiateUploadNewFileOptions {
InitiateUploadNewFileOptions();
@@ -321,6 +335,7 @@ class DriveServiceInterface {
virtual google_apis::CancelCallback AddNewDirectory(
const std::string& parent_resource_id,
const std::string& directory_title,
+ const AddNewDirectoryOptions& options,
const google_apis::GetResourceEntryCallback& callback) = 0;
// Downloads a file with |resourced_id|. The downloaded file will
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/drive_service_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698