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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_operations.h

Issue 12246002: Implement GetUploadStatusOperation on GData WAPI. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_create_base_operation
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // content::UrlFetcherDelegate overrides. 554 // content::UrlFetcherDelegate overrides.
555 virtual void OnURLFetchUploadProgress(const net::URLFetcher* source, 555 virtual void OnURLFetchUploadProgress(const net::URLFetcher* source,
556 int64 current, int64 total) OVERRIDE; 556 int64 current, int64 total) OVERRIDE;
557 557
558 private: 558 private:
559 const ResumeUploadParams params_; 559 const ResumeUploadParams params_;
560 560
561 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); 561 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
562 }; 562 };
563 563
564 //========================== GetUploadStatusOperation ==========================
565
566 // This class performs the operation for getting the current upload status
567 // 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.
568 class GetUploadStatusOperation : public UploadRangeOperationBase {
569 public:
570 // |callback| must not be null. See also UploadRangeOperationBase's
571 // constructor for more details.
572 // |content_length| is the whole data size to be uploaded, or -1 if it is
573 // unknown.
574 GetUploadStatusOperation(
575 OperationRegistry* registry,
576 net::URLRequestContextGetter* url_request_context_getter,
577 const UploadRangeCallback& callback,
578 UploadMode load_mode,
579 const FilePath& drive_file_path,
580 const GURL& upload_url,
581 int64 content_length);
582 virtual ~GetUploadStatusOperation();
583
584 protected:
585 // UrlFetchOperationBase overrides.
586 virtual std::vector<std::string> GetExtraRequestHeaders() const OVERRIDE;
587
588 private:
589 const int64 content_length_;
590
591 DISALLOW_COPY_AND_ASSIGN(GetUploadStatusOperation);
592 };
593
564 } // namespace google_apis 594 } // namespace google_apis
565 595
566 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_ 596 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698