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

Unified Diff: chrome/browser/google_apis/gdata_wapi_operations.h

Issue 11577002: Converted ResumeUploadOperation to use JSON in response instead of XML. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years 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
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 f2c631800516d84cc43863adcca9deedc7b5c306..4ed7fd8bbcfc333cc44eaea306457edb2a00ded5 100644
--- a/chrome/browser/google_apis/gdata_wapi_operations.h
+++ b/chrome/browser/google_apis/gdata_wapi_operations.h
@@ -565,10 +565,16 @@ class ResumeUploadOperation : public UrlFetchOperationBase {
int64 current, int64 total) OVERRIDE;
private:
+ // Called when ParseJson() is completed.
+ void OnDataParsed(GDataErrorCode code, scoped_ptr<base::Value> value);
+
const ResumeUploadCallback callback_;
const ResumeUploadParams params_;
bool last_chunk_completed_;
+ // Note: This should remain the last member so it'll be destroyed and
+ // invalidate its weak pointers before any other members are destroyed.
+ base::WeakPtrFactory<ResumeUploadOperation> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
};
« no previous file with comments | « chrome/browser/google_apis/base_operations_unittest.cc ('k') | chrome/browser/google_apis/gdata_wapi_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698