Index: google_apis/drive/drive_api_parser.h |
diff --git a/google_apis/drive/drive_api_parser.h b/google_apis/drive/drive_api_parser.h |
index babb4cdc5c16aa737548cca079e136ee146d6905..bbff44a2de21d3ea9f9ad7696a018d2dbf84cd80 100644 |
--- a/google_apis/drive/drive_api_parser.h |
+++ b/google_apis/drive/drive_api_parser.h |
@@ -485,6 +485,10 @@ class FileResource { |
// Returns the 'shared' attribute of the file. |
bool shared() const { return shared_; } |
+ // Returns the short-lived download URL for the file. This field exists |
+ // only when the file content is stored in Drive. |
+ const GURL& download_url() const { return download_url_; } |
+ |
// Returns MD5 checksum of this file. |
const std::string& md5_checksum() const { return md5_checksum_; } |
@@ -536,6 +540,9 @@ class FileResource { |
void set_shared(bool shared) { |
shared_ = shared; |
} |
+ void set_download_url(const GURL& download_url) { |
+ download_url_ = download_url; |
+ } |
void set_md5_checksum(const std::string& md5_checksum) { |
md5_checksum_ = md5_checksum; |
} |
@@ -570,6 +577,7 @@ class FileResource { |
base::Time last_viewed_by_me_date_; |
base::Time shared_with_me_date_; |
bool shared_; |
+ GURL download_url_; |
std::string md5_checksum_; |
int64 file_size_; |
GURL alternate_link_; |