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

Side by Side Diff: chrome/browser/chromeos/drive/file_system/touch_operation.h

Issue 59433002: drive: Simplify TouchOperation with ResourceEntry::local_id (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_system/touch_operation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void TouchFile(const base::FilePath& file_path, 48 void TouchFile(const base::FilePath& file_path,
49 const base::Time& last_access_time, 49 const base::Time& last_access_time,
50 const base::Time& last_modified_time, 50 const base::Time& last_modified_time,
51 const FileOperationCallback& callback); 51 const FileOperationCallback& callback);
52 52
53 private: 53 private:
54 // Part of TouchFile(). Runs after GetResourceEntry is completed. 54 // Part of TouchFile(). Runs after GetResourceEntry is completed.
55 void TouchFileAfterGetResourceEntry(const base::Time& last_access_time, 55 void TouchFileAfterGetResourceEntry(const base::Time& last_access_time,
56 const base::Time& last_modified_time, 56 const base::Time& last_modified_time,
57 const FileOperationCallback& callback, 57 const FileOperationCallback& callback,
58 std::string* local_id,
59 ResourceEntry* entry, 58 ResourceEntry* entry,
60 FileError error); 59 FileError error);
61 60
62 // Part of TouchFile(). Runs after the server side update for last access time 61 // Part of TouchFile(). Runs after the server side update for last access time
63 // and last modified time is completed. 62 // and last modified time is completed.
64 void TouchFileAfterServerTimeStampUpdated( 63 void TouchFileAfterServerTimeStampUpdated(
65 const std::string& local_id, 64 const std::string& local_id,
66 const FileOperationCallback& callback, 65 const FileOperationCallback& callback,
67 google_apis::GDataErrorCode gdata_error, 66 google_apis::GDataErrorCode gdata_error,
68 scoped_ptr<google_apis::ResourceEntry> resource_entry); 67 scoped_ptr<google_apis::ResourceEntry> resource_entry);
(...skipping 11 matching lines...) Expand all
80 // Note: This should remain the last member so it'll be destroyed and 79 // Note: This should remain the last member so it'll be destroyed and
81 // invalidate the weak pointers before any other members are destroyed. 80 // invalidate the weak pointers before any other members are destroyed.
82 base::WeakPtrFactory<TouchOperation> weak_ptr_factory_; 81 base::WeakPtrFactory<TouchOperation> weak_ptr_factory_;
83 DISALLOW_COPY_AND_ASSIGN(TouchOperation); 82 DISALLOW_COPY_AND_ASSIGN(TouchOperation);
84 }; 83 };
85 84
86 } // namespace file_system 85 } // namespace file_system
87 } // namespace drive 86 } // namespace drive
88 87
89 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_ 88 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_system/touch_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698