| 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_ENTRY_UPDATE_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_ENTRY_UPDATE_PERFORMER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_ENTRY_UPDATE_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_ENTRY_UPDATE_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 scoped_ptr<ResourceEntry> parent_entry, | 52 scoped_ptr<ResourceEntry> parent_entry, |
| 53 FileError error); | 53 FileError error); |
| 54 | 54 |
| 55 // Part of UpdateEntry(). Called after UpdateResource is completed. | 55 // Part of UpdateEntry(). Called after UpdateResource is completed. |
| 56 void UpdateEntryAfterUpdateResource( | 56 void UpdateEntryAfterUpdateResource( |
| 57 const FileOperationCallback& callback, | 57 const FileOperationCallback& callback, |
| 58 const std::string& local_id, | 58 const std::string& local_id, |
| 59 google_apis::GDataErrorCode status, | 59 google_apis::GDataErrorCode status, |
| 60 scoped_ptr<google_apis::ResourceEntry> resource_entry); | 60 scoped_ptr<google_apis::ResourceEntry> resource_entry); |
| 61 | 61 |
| 62 // Part of UpdateEntry(). Called after local metadata is updated. |
| 63 void UpdateEntryAfterFinish(const FileOperationCallback& callback, |
| 64 const ResourceEntry* entry, |
| 65 FileError error); |
| 66 |
| 62 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 67 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 63 JobScheduler* scheduler_; | 68 JobScheduler* scheduler_; |
| 64 ResourceMetadata* metadata_; | 69 ResourceMetadata* metadata_; |
| 65 scoped_ptr<RemovePerformer> remove_performer_; | 70 scoped_ptr<RemovePerformer> remove_performer_; |
| 66 | 71 |
| 67 // Note: This should remain the last member so it'll be destroyed and | 72 // Note: This should remain the last member so it'll be destroyed and |
| 68 // invalidate the weak pointers before any other members are destroyed. | 73 // invalidate the weak pointers before any other members are destroyed. |
| 69 base::WeakPtrFactory<EntryUpdatePerformer> weak_ptr_factory_; | 74 base::WeakPtrFactory<EntryUpdatePerformer> weak_ptr_factory_; |
| 70 DISALLOW_COPY_AND_ASSIGN(EntryUpdatePerformer); | 75 DISALLOW_COPY_AND_ASSIGN(EntryUpdatePerformer); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace internal | 78 } // namespace internal |
| 74 } // namespace drive | 79 } // namespace drive |
| 75 | 80 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_ENTRY_UPDATE_PERFORMER_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_ENTRY_UPDATE_PERFORMER_H_ |
| OLD | NEW |