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

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

Issue 10855034: Drive: Remove gdata_params.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix reviews (#12) and Rebase Created 8 years, 4 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
diff --git a/chrome/browser/chromeos/gdata/operations_base.h b/chrome/browser/chromeos/gdata/operations_base.h
index e03eb4e8fd600df6786f4a3b2a9fc35fe2cf6f5f..4db55487fef1f09887921890d513b3ef3c60c711 100644
--- a/chrome/browser/chromeos/gdata/operations_base.h
+++ b/chrome/browser/chromeos/gdata/operations_base.h
@@ -8,9 +8,11 @@
#include <string>
#include <vector>
+#include "base/callback.h"
+#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
-#include "chrome/browser/chromeos/gdata/gdata_params.h"
#include "chrome/common/net/gaia/oauth2_access_token_consumer.h"
+#include "googleurl/src/gurl.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -19,6 +21,20 @@ class OAuth2AccessTokenFetcher;
namespace gdata {
+// Callback type for authentication related DocumentService calls.
+typedef base::Callback<void(GDataErrorCode error,
+ const std::string& token)> AuthStatusCallback;
satorux1 2012/08/09 20:53:48 move this to where class AuthOperation is defined?
yoshiki 2012/08/09 22:00:46 Done.
+
+// Callback type for DocumentServiceInterface::GetDocuments.
+// Note: feed_data argument should be passed using base::Passed(&feed_data), not
+// feed_data.Pass().
+typedef base::Callback<void(GDataErrorCode error,
+ scoped_ptr<base::Value> feed_data)> GetDataCallback;
satorux1 2012/08/09 20:53:48 ditto. move it to GetDataOperation section.
yoshiki 2012/08/09 22:00:46 Done.
+
+// Callback type for Delete/Move DocumentServiceInterface calls.
+typedef base::Callback<void(GDataErrorCode error,
+ const GURL& document_url)> EntryActionCallback;
+
//================================ AuthOperation ===============================
// OAuth2 authorization token retrieval operation.

Powered by Google App Engine
This is Rietveld 408576698