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

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

Issue 10834170: gdata: Move GDataWapiFeedLoader to a set of new files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h
index 04e5e6d6fae9f7510de6a9c4dc6fc6d78486a2bd..d7640db0af38f79b3da5146c199aaec370a405c2 100644
--- a/chrome/browser/chromeos/gdata/gdata_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_util.h
@@ -18,6 +18,14 @@
class FilePath;
class Profile;
+namespace base {
+class SequencedTaskRunner;
+} // namespace base
+
+namespace tracked_objects {
+class Location;
+} // tracked_objects
+
namespace gdata {
namespace util {
@@ -112,7 +120,7 @@ std::string FormatTimeAsString(const base::Time& time);
// Callback type for PrepareWritableFilePathAndRun.
typedef base::Callback<void (GDataFileError, const FilePath& path)>
- OpenFileCallback;
+ OpenFileCallback;
// Invokes |callback| on blocking thread pool, after converting virtual |path|
// string like "/special/drive/foo.txt" to the concrete local cache file path.
@@ -126,6 +134,24 @@ void PrepareWritableFileAndRun(Profile* profile,
const FilePath& path,
const OpenFileCallback& callback);
+// Converts gdata error code into file platform error code.
+GDataFileError GDataToGDataFileError(GDataErrorCode status);
+
+// 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);
+
} // namespace util
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698