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

Unified Diff: chrome/browser/chromeos/gdata/operations_base.h

Issue 10797027: Revert 147413 - gdrive: Get JSON feeds parsing off the UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome/browser/chromeos/gdata/operations_base.h
===================================================================
--- chrome/browser/chromeos/gdata/operations_base.h (revision 147421)
+++ chrome/browser/chromeos/gdata/operations_base.h (working copy)
@@ -186,24 +186,15 @@
virtual ~GetDataOperation();
// Parse GData JSON response.
- virtual bool ParseResponse(GDataErrorCode fetch_error_code,
- const std::string& data);
+ virtual base::Value* ParseResponse(const std::string& data);
protected:
// Overridden from UrlFetchOperationBase.
virtual bool ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE;
- virtual void RunCallbackOnPrematureFailure(
- GDataErrorCode fetch_error_code) OVERRIDE;
- void RunCallback(GDataErrorCode fetch_error_code,
- scoped_ptr<base::Value> value);
+ virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE;
private:
- void OnDataParsed(GDataErrorCode fetch_error_code,
- scoped_ptr<base::Value>* value);
-
GetDataCallback callback_;
- base::WeakPtrFactory<GetDataOperation> weak_ptr_factory_;
-
DISALLOW_COPY_AND_ASSIGN(GetDataOperation);
};
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations_unittest.cc ('k') | chrome/browser/chromeos/gdata/operations_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698