OLD | NEW |
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_SYNC_REMOVE_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_REMOVE_PERFORMER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_REMOVE_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_REMOVE_PERFORMER_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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 google_apis::GDataErrorCode status, | 80 google_apis::GDataErrorCode status, |
81 scoped_ptr<google_apis::ResourceEntry> resource_entry); | 81 scoped_ptr<google_apis::ResourceEntry> resource_entry); |
82 | 82 |
83 // Part of UnparentResource(). | 83 // Part of UnparentResource(). |
84 void UnparentResourceAfterUpdateRemoteState( | 84 void UnparentResourceAfterUpdateRemoteState( |
85 const FileOperationCallback& callback, | 85 const FileOperationCallback& callback, |
86 const std::string& local_id, | 86 const std::string& local_id, |
87 google_apis::GDataErrorCode status); | 87 google_apis::GDataErrorCode status); |
88 | 88 |
89 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 89 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 90 file_system::OperationObserver* observer_; |
90 JobScheduler* scheduler_; | 91 JobScheduler* scheduler_; |
91 ResourceMetadata* metadata_; | 92 ResourceMetadata* metadata_; |
92 scoped_ptr<EntryRevertPerformer> entry_revert_performer_; | 93 scoped_ptr<EntryRevertPerformer> entry_revert_performer_; |
93 | 94 |
94 // Note: This should remain the last member so it'll be destroyed and | 95 // Note: This should remain the last member so it'll be destroyed and |
95 // invalidate the weak pointers before any other members are destroyed. | 96 // invalidate the weak pointers before any other members are destroyed. |
96 base::WeakPtrFactory<RemovePerformer> weak_ptr_factory_; | 97 base::WeakPtrFactory<RemovePerformer> weak_ptr_factory_; |
97 DISALLOW_COPY_AND_ASSIGN(RemovePerformer); | 98 DISALLOW_COPY_AND_ASSIGN(RemovePerformer); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace internal | 101 } // namespace internal |
101 } // namespace drive | 102 } // namespace drive |
102 | 103 |
103 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_REMOVE_PERFORMER_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_REMOVE_PERFORMER_H_ |
OLD | NEW |