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

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

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // |last_access_time|, |last_modified_time| and |callback| must not be null. 45 // |last_access_time|, |last_modified_time| and |callback| must not be null.
46 void TouchFile(const base::FilePath& file_path, 46 void TouchFile(const base::FilePath& file_path,
47 const base::Time& last_access_time, 47 const base::Time& last_access_time,
48 const base::Time& last_modified_time, 48 const base::Time& last_modified_time,
49 const FileOperationCallback& callback); 49 const FileOperationCallback& callback);
50 50
51 private: 51 private:
52 // Part of TouchFile(). Runs after updating the local state. 52 // Part of TouchFile(). Runs after updating the local state.
53 void TouchFileAfterUpdateLocalState(const base::FilePath& file_path, 53 void TouchFileAfterUpdateLocalState(const base::FilePath& file_path,
54 const FileOperationCallback& callback, 54 const FileOperationCallback& callback,
55 const ResourceEntry* entry,
55 const std::string* local_id, 56 const std::string* local_id,
56 FileError error); 57 FileError error);
57 58
58 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 59 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
59 OperationObserver* observer_; 60 OperationObserver* observer_;
60 internal::ResourceMetadata* metadata_; 61 internal::ResourceMetadata* metadata_;
61 62
62 // Note: This should remain the last member so it'll be destroyed and 63 // Note: This should remain the last member so it'll be destroyed and
63 // invalidate the weak pointers before any other members are destroyed. 64 // invalidate the weak pointers before any other members are destroyed.
64 base::WeakPtrFactory<TouchOperation> weak_ptr_factory_; 65 base::WeakPtrFactory<TouchOperation> weak_ptr_factory_;
65 DISALLOW_COPY_AND_ASSIGN(TouchOperation); 66 DISALLOW_COPY_AND_ASSIGN(TouchOperation);
66 }; 67 };
67 68
68 } // namespace file_system 69 } // namespace file_system
69 } // namespace drive 70 } // namespace drive
70 71
71 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_TOUCH_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698