Chromium Code Reviews| 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. |