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..606704add8c0247d0771dc3227d1321aa743fe6f 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>)> ParseJsonCallback; |
satorux1
2012/12/14 05:02:42
Please add a parameter name:
typedef base::Callba
mtomasz
2012/12/14 05:43:48
Done.
mtomasz
2012/12/14 05:43:48
Done.
|
+ |
+// Parses JSON passed in |data| 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& data, const ParseJsonCallback& callback); |
satorux1
2012/12/14 05:02:42
nit: data -> json?
mtomasz
2012/12/14 05:43:48
Done.
|
+ |
//======================= AuthenticatedOperationInterface ====================== |
// An interface class for implementing an operation which requires OAuth2 |