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

Unified Diff: chrome/browser/google_apis/base_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: Cleaned up. 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/base_operations.h
diff --git a/chrome/browser/google_apis/base_operations.h b/chrome/browser/google_apis/base_operations.h
index 5d82ce245c9950f4f943e71e1eeed0f1581906de..570a7c18e354ff637d53e9605948c7d75b71a657 100644
--- a/chrome/browser/google_apis/base_operations.h
+++ b/chrome/browser/google_apis/base_operations.h
@@ -31,6 +31,14 @@ class URLRequestContextGetter;
namespace google_apis {
+// Callback used to pass parsed JSON from parseJson(). If parsing error occures,
+// then the passed argument is null.
+typedef base::Callback<void(scoped_ptr<base::Value>)> ParseJsonCallback;
+
+// Parses JSON passed in |data| on blocking pool. Calls |callback| when finished
+// with either success or failure. The callback must not be null.
+void parseJson(const std::string& data, const ParseJsonCallback& callback);
satorux1 2012/12/14 00:17:24 parseJson -> ParseJson Calls |callback| when fini
mtomasz 2012/12/14 04:58:36 Done.
+
//======================= AuthenticatedOperationInterface ======================
// An interface class for implementing an operation which requires OAuth2
« no previous file with comments | « no previous file | chrome/browser/google_apis/base_operations.cc » ('j') | chrome/browser/google_apis/base_operations.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698