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

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

Issue 1042803002: Drive: Move inner structures of DriveAPIService under drive namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 5 years, 9 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 0d56401e7b1f6a8f66c8fbd09584e0371aabc1f8..3e4f4c53da56869dba8b94340acc71c3ba5ede33 100644
--- a/chrome/browser/drive/drive_service_interface.h
+++ b/chrome/browser/drive/drive_service_interface.h
@@ -32,6 +32,73 @@ class DriveServiceObserver {
virtual ~DriveServiceObserver() {}
};
+// 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;
+
+ // List of properties for a new directory.
+ google_apis::drive::Properties properties;
+};
+
+// Optional parameters for InitiateUploadNewFile() and
+// MultipartUploadNewFile().
+struct UploadNewFileOptions {
+ UploadNewFileOptions();
+ ~UploadNewFileOptions();
+
+ // modified_date of the file.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time modified_date;
+
+ // last_viewed_by_me_date of the file.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time last_viewed_by_me_date;
+
+ // List of properties for a new file.
+ google_apis::drive::Properties properties;
+};
+
+// Optional parameters for InitiateUploadExistingFile() and
+// MultipartUploadExistingFile().
+struct UploadExistingFileOptions {
+ UploadExistingFileOptions();
+ ~UploadExistingFileOptions();
+
+ // Expected ETag of the file. UPLOAD_ERROR_CONFLICT error is generated when
+ // matching fails.
+ // Pass the empty string to disable this behavior.
+ std::string etag;
+
+ // New parent of the file.
+ // Pass the empty string to keep the property unchanged.
+ std::string parent_resource_id;
+
+ // New title of the file.
+ // Pass the empty string to keep the property unchanged.
+ std::string title;
+
+ // New modified_date of the file.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time modified_date;
+
+ // New last_viewed_by_me_date of the file.
+ // Pass the null Time if you are not interested in setting this property.
+ base::Time last_viewed_by_me_date;
+
+ // List of new properties for an existing file (it will be merged with
+ // existing properties).
+ google_apis::drive::Properties properties;
+};
+
// This defines an interface for sharing by DriveService and MockDriveService
// so that we can do testing of clients of DriveService.
//
@@ -39,73 +106,6 @@ 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;
-
- // List of properties for a new directory.
- google_apis::drive::Properties properties;
- };
-
- // Optional parameters for InitiateUploadNewFile() and
- // MultipartUploadNewFile().
- struct UploadNewFileOptions {
- UploadNewFileOptions();
- ~UploadNewFileOptions();
-
- // modified_date of the file.
- // Pass the null Time if you are not interested in setting this property.
- base::Time modified_date;
-
- // last_viewed_by_me_date of the file.
- // Pass the null Time if you are not interested in setting this property.
- base::Time last_viewed_by_me_date;
-
- // List of properties for a new file.
- google_apis::drive::Properties properties;
- };
-
- // Optional parameters for InitiateUploadExistingFile() and
- // MultipartUploadExistingFile().
- struct UploadExistingFileOptions {
- UploadExistingFileOptions();
- ~UploadExistingFileOptions();
-
- // Expected ETag of the file. UPLOAD_ERROR_CONFLICT error is generated when
- // matching fails.
- // Pass the empty string to disable this behavior.
- std::string etag;
-
- // New parent of the file.
- // Pass the empty string to keep the property unchanged.
- std::string parent_resource_id;
-
- // New title of the file.
- // Pass the empty string to keep the property unchanged.
- std::string title;
-
- // New modified_date of the file.
- // Pass the null Time if you are not interested in setting this property.
- base::Time modified_date;
-
- // New last_viewed_by_me_date of the file.
- // Pass the null Time if you are not interested in setting this property.
- base::Time last_viewed_by_me_date;
-
- // List of new properties for an existing file (it will be merged with
- // existing properties).
- google_apis::drive::Properties properties;
- };
-
virtual ~DriveServiceInterface() {}
// Common service:
« 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