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

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

Issue 23591067: Add last_modified to CopyResource and MoveResource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/dummy_drive_service.h » ('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 4908886961fd2a9c20477df8aee0d8bef58cb42f..9ff3be69ffea210f61aaa189cabc3fc5b8e677e7 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -201,6 +201,8 @@ class DriveServiceInterface {
// Makes a copy of a resource with |resource_id|.
// The new resource will be put under a directory with |parent_resource_id|,
// and it'll be named |new_title|.
+ // If |last_modified| is not null, the modified date of the resource on the
+ // server will be set to the date.
// This request is supported only on DriveAPIService, because GData WAPI
// doesn't support the function unfortunately.
// Upon completion, invokes |callback| with results on the calling thread.
@@ -209,6 +211,7 @@ class DriveServiceInterface {
const std::string& resource_id,
const std::string& parent_resource_id,
const std::string& new_title,
+ const base::Time& last_modified,
const google_apis::GetResourceEntryCallback& callback) = 0;
// Makes a copy of a hosted document identified by its |resource_id|.
@@ -226,6 +229,8 @@ class DriveServiceInterface {
// Moves a resource with |resource_id| to the directory of
// |parent_resource_id| with renaming to |new_title|.
+ // If |last_modified| is not null, the modified date of the resource on the
+ // server will be set to the date.
// This request is supported only on DriveAPIService, because GData WAPI
// doesn't support the function unfortunately.
// Upon completion, invokes |callback| with results on the calling thread.
@@ -234,6 +239,7 @@ class DriveServiceInterface {
const std::string& resource_id,
const std::string& parent_resource_id,
const std::string& new_title,
+ const base::Time& last_modified,
const google_apis::GetResourceEntryCallback& callback) = 0;
// Renames a document or collection identified by its |resource_id|
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698