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

Unified Diff: chrome/browser/chromeos/drive/file_system/touch_operation.h

Issue 101073002: drive: Support offline touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/drive/file_system/touch_operation.h
diff --git a/chrome/browser/chromeos/drive/file_system/touch_operation.h b/chrome/browser/chromeos/drive/file_system/touch_operation.h
index 9b0c99b1daa1a87ff05f82cc0b0501e2e9ae904a..7a1cb3183f956de2068c6e91d8c31741ca953f68 100644
--- a/chrome/browser/chromeos/drive/file_system/touch_operation.h
+++ b/chrome/browser/chromeos/drive/file_system/touch_operation.h
@@ -27,7 +27,6 @@ namespace internal {
class ResourceMetadata;
} // namespace internal
-class JobScheduler;
class ResourceEntry;
namespace file_system {
@@ -38,7 +37,6 @@ class TouchOperation {
public:
TouchOperation(base::SequencedTaskRunner* blocking_task_runner,
OperationObserver* observer,
- JobScheduler* scheduler,
internal::ResourceMetadata* metadata);
~TouchOperation();
@@ -51,29 +49,14 @@ class TouchOperation {
const FileOperationCallback& callback);
private:
- // Part of TouchFile(). Runs after GetResourceEntry is completed.
- void TouchFileAfterGetResourceEntry(const base::Time& last_access_time,
- const base::Time& last_modified_time,
+ // Part of TouchFile(). Runs after updating the local state.
+ void TouchFileAfterUpdateLocalState(const base::FilePath& file_path,
const FileOperationCallback& callback,
- ResourceEntry* entry,
+ const std::string* local_id,
FileError error);
- // Part of TouchFile(). Runs after the server side update for last access time
- // and last modified time is completed.
- void TouchFileAfterServerTimeStampUpdated(
- const std::string& local_id,
- const FileOperationCallback& callback,
- google_apis::GDataErrorCode gdata_error,
- scoped_ptr<google_apis::ResourceEntry> resource_entry);
-
- // Part of TouchFile(). Runs after refreshing the local metadata is completed.
- void TouchFileAfterRefreshMetadata(const base::FilePath* file_path,
- const FileOperationCallback& callback,
- FileError error);
-
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
OperationObserver* observer_;
- JobScheduler* scheduler_;
internal::ResourceMetadata* metadata_;
// Note: This should remain the last member so it'll be destroyed and
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/drive/file_system/touch_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698