| Index: chrome/browser/google_apis/gdata_util.h
|
| diff --git a/chrome/browser/google_apis/gdata_util.h b/chrome/browser/google_apis/gdata_util.h
|
| index 7f54b403725ba16524c77bff3154d2f58e058c37..a27e8039e816919938354036d1721242ce51c542 100644
|
| --- a/chrome/browser/google_apis/gdata_util.h
|
| +++ b/chrome/browser/google_apis/gdata_util.h
|
| @@ -7,24 +7,15 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/callback_forward.h"
|
| -#include "base/logging.h"
|
| -#include "base/platform_file.h"
|
| -#include "base/task_runner_util.h"
|
| -#include "chrome/browser/google_apis/gdata_errorcode.h"
|
| +#include "base/string_piece.h"
|
|
|
| class FilePath;
|
| class Profile;
|
|
|
| namespace base {
|
| -class SequencedTaskRunner;
|
| class Time;
|
| } // namespace base
|
|
|
| -namespace tracked_objects {
|
| -class Location;
|
| -} // tracked_objects
|
| -
|
| namespace google_apis {
|
| namespace util {
|
|
|
| @@ -41,36 +32,6 @@ std::string FormatTimeAsString(const base::Time& time);
|
| // Formats a base::Time as an RFC 3339 date/time (in localtime).
|
| std::string FormatTimeAsStringLocaltime(const base::Time& time);
|
|
|
| -// Wrapper around BrowserThread::PostTask to post a task to the blocking
|
| -// pool with the given sequence token.
|
| -void PostBlockingPoolSequencedTask(
|
| - const tracked_objects::Location& from_here,
|
| - base::SequencedTaskRunner* blocking_task_runner,
|
| - const base::Closure& task);
|
| -
|
| -// Similar to PostBlockingPoolSequencedTask() but this one takes a reply
|
| -// callback that runs on the calling thread.
|
| -void PostBlockingPoolSequencedTaskAndReply(
|
| - const tracked_objects::Location& from_here,
|
| - base::SequencedTaskRunner* blocking_task_runner,
|
| - const base::Closure& request_task,
|
| - const base::Closure& reply_task);
|
| -
|
| -// Similar to PostBlockingPoolSequencedTaskAndReply() but this one runs the
|
| -// reply callback with the return value of the request task.
|
| -template <typename ReturnType>
|
| -void PostBlockingPoolSequencedTaskAndReplyWithResult(
|
| - const tracked_objects::Location& from_here,
|
| - base::SequencedTaskRunner* blocking_task_runner,
|
| - const base::Callback<ReturnType(void)>& request_task,
|
| - const base::Callback<void(ReturnType)>& reply_task) {
|
| - const bool posted = base::PostTaskAndReplyWithResult(blocking_task_runner,
|
| - from_here,
|
| - request_task,
|
| - reply_task);
|
| - DCHECK(posted);
|
| -}
|
| -
|
| } // namespace util
|
| } // namespace google_apis
|
|
|
|
|