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

Unified Diff: google_apis/drive/base_requests.h

Issue 944413003: Add support for setting properties to requests uploading contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. Created 5 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_service_interface.h ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/base_requests.h
diff --git a/google_apis/drive/base_requests.h b/google_apis/drive/base_requests.h
index 59e50c8c39c7fadf3cc3d1140a92a8ede548a0cf..d7f46ab3af469c781b2def66ff71ec681893837d 100644
--- a/google_apis/drive/base_requests.h
+++ b/google_apis/drive/base_requests.h
@@ -449,17 +449,13 @@ class MultipartUploadRequestBase : public UrlFetchRequestBase {
// |content_type| and |content_length| should be the attributes of the
// uploading file. Other parameters are optional and can be empty or null
// depending on Upload URL provided by the subclasses.
- MultipartUploadRequestBase(
- RequestSender* sender,
- const std::string& title,
- const std::string& parent_resource_id,
- const std::string& content_type,
- int64 content_length,
- const base::Time& modified_date,
- const base::Time& last_viewed_by_me_date,
- const base::FilePath& local_file_path,
- const FileResourceCallback& callback,
- const google_apis::ProgressCallback& progress_callback);
+ MultipartUploadRequestBase(RequestSender* sender,
+ const std::string& metadata_json,
+ const std::string& content_type,
+ int64 content_length,
+ const base::FilePath& local_file_path,
+ const FileResourceCallback& callback,
+ const ProgressCallback& progress_callback);
~MultipartUploadRequestBase() override;
// Overridden from AuthenticatedRequestInterface.
@@ -481,9 +477,6 @@ class MultipartUploadRequestBase : public UrlFetchRequestBase {
// Parses the response value and invokes |callback_| with |FileResource|.
void OnDataParsed(DriveApiErrorCode code, scoped_ptr<base::Value> value);
- // Whether to the request has modified date information or not.
- bool has_modified_date() const { return has_modified_date_; }
-
private:
// Continues to rest part of |Start| method after determining boundary string
// of multipart/related.
@@ -497,7 +490,6 @@ class MultipartUploadRequestBase : public UrlFetchRequestBase {
const std::string metadata_json_;
const std::string content_type_;
const base::FilePath local_path_;
- const bool has_modified_date_;
const FileResourceCallback callback_;
const ProgressCallback progress_callback_;
« no previous file with comments | « chrome/browser/drive/drive_service_interface.h ('k') | google_apis/drive/base_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698