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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // The owner of the SyncEngine is responsible for their lifetime. | 133 // The owner of the SyncEngine is responsible for their lifetime. |
134 // I.e. the owner should declare the dependency explicitly by calling | 134 // I.e. the owner should declare the dependency explicitly by calling |
135 // BrowserContextKeyedService::DependsOn(). | 135 // BrowserContextKeyedService::DependsOn(). |
136 drive::DriveNotificationManager* notification_manager_; | 136 drive::DriveNotificationManager* notification_manager_; |
137 ExtensionService* extension_service_; | 137 ExtensionService* extension_service_; |
138 | 138 |
139 ObserverList<SyncServiceObserver> service_observers_; | 139 ObserverList<SyncServiceObserver> service_observers_; |
140 ObserverList<FileStatusObserver> file_status_observers_; | 140 ObserverList<FileStatusObserver> file_status_observers_; |
141 RemoteChangeProcessor* remote_change_processor_; | 141 RemoteChangeProcessor* remote_change_processor_; |
142 | 142 |
| 143 // TODO: This should be the last member in this class. |
| 144 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
143 SyncTaskManager task_manager_; | 145 SyncTaskManager task_manager_; |
144 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 147 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace drive_backend | 150 } // namespace drive_backend |
150 } // namespace sync_file_system | 151 } // namespace sync_file_system |
151 | 152 |
152 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 153 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
OLD | NEW |