Chromium Code Reviews| Index: chrome/browser/google_apis/gdata_wapi_operations.h |
| diff --git a/chrome/browser/google_apis/gdata_wapi_operations.h b/chrome/browser/google_apis/gdata_wapi_operations.h |
| index 5dd8616007b4ebc247f7a174eae9ad7c7342fe0c..fe8272dd2b7f74aa2f6757c85f05606124f46380 100644 |
| --- a/chrome/browser/google_apis/gdata_wapi_operations.h |
| +++ b/chrome/browser/google_apis/gdata_wapi_operations.h |
| @@ -561,6 +561,36 @@ class ResumeUploadOperation : public UploadRangeOperationBase { |
| DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); |
| }; |
| +//========================== GetUploadStatusOperation ========================== |
| + |
| +// This class performs the operation for getting the current upload status |
| +// of a file. |
|
satorux1
2013/02/07 05:38:57
Could you be more specific? What data we can get f
hidehiko
2013/02/07 06:34:57
Done.
|
| +class GetUploadStatusOperation : public UploadRangeOperationBase { |
| + public: |
| + // |callback| must not be null. See also UploadRangeOperationBase's |
| + // constructor for more details. |
| + // |content_length| is the whole data size to be uploaded, or -1 if it is |
| + // unknown. |
| + GetUploadStatusOperation( |
| + OperationRegistry* registry, |
| + net::URLRequestContextGetter* url_request_context_getter, |
| + const UploadRangeCallback& callback, |
| + UploadMode load_mode, |
| + const FilePath& drive_file_path, |
| + const GURL& upload_url, |
| + int64 content_length); |
| + virtual ~GetUploadStatusOperation(); |
| + |
| + protected: |
| + // UrlFetchOperationBase overrides. |
| + virtual std::vector<std::string> GetExtraRequestHeaders() const OVERRIDE; |
| + |
| + private: |
| + const int64 content_length_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation); |
| +}; |
| + |
| } // namespace google_apis |
| #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ |