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

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: 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
« no previous file with comments | « no previous file | chrome/browser/google_apis/base_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ac7795187d676c05207c706eba79b4f7a11824c 100644
--- a/chrome/browser/google_apis/base_operations.h
+++ b/chrome/browser/google_apis/base_operations.h
@@ -31,6 +31,15 @@ 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> value)> ParseJsonCallback;
+
+// Parses JSON passed in |json| on blocking pool. Runs |callback| on the calling
+// thread when finished with either success or failure.
+// The callback must not be null.
+void ParseJson(const std::string& json, const ParseJsonCallback& callback);
+
//======================= 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698