| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 class SyncEngine : public RemoteFileSyncService, | 53 class SyncEngine : public RemoteFileSyncService, |
| 54 public LocalChangeProcessor, | 54 public LocalChangeProcessor, |
| 55 public drive::DriveNotificationObserver, | 55 public drive::DriveNotificationObserver, |
| 56 public drive::DriveServiceObserver, | 56 public drive::DriveServiceObserver, |
| 57 public net::NetworkChangeNotifier::NetworkChangeObserver { | 57 public net::NetworkChangeNotifier::NetworkChangeObserver { |
| 58 public: | 58 public: |
| 59 typedef Observer SyncServiceObserver; | 59 typedef Observer SyncServiceObserver; |
| 60 | 60 |
| 61 static scoped_ptr<SyncEngine> CreateForBrowserContext( | 61 static scoped_ptr<SyncEngine> CreateForBrowserContext( |
| 62 content::BrowserContext* context); | 62 content::BrowserContext* context, |
| 63 TaskLogger* task_logger); |
| 63 static void AppendDependsOnFactories( | 64 static void AppendDependsOnFactories( |
| 64 std::set<BrowserContextKeyedServiceFactory*>* factories); | 65 std::set<BrowserContextKeyedServiceFactory*>* factories); |
| 65 | 66 |
| 66 virtual ~SyncEngine(); | 67 virtual ~SyncEngine(); |
| 67 | 68 |
| 68 void Initialize(const base::FilePath& base_dir, | 69 void Initialize(const base::FilePath& base_dir, |
| 70 TaskLogger* task_logger, |
| 69 base::SequencedTaskRunner* file_task_runner, | 71 base::SequencedTaskRunner* file_task_runner, |
| 70 leveldb::Env* env_override); | 72 leveldb::Env* env_override); |
| 71 | 73 |
| 72 // RemoteFileSyncService overrides. | 74 // RemoteFileSyncService overrides. |
| 73 virtual void AddServiceObserver(SyncServiceObserver* observer) OVERRIDE; | 75 virtual void AddServiceObserver(SyncServiceObserver* observer) OVERRIDE; |
| 74 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; | 76 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; |
| 75 virtual void RegisterOrigin( | 77 virtual void RegisterOrigin( |
| 76 const GURL& origin, | 78 const GURL& origin, |
| 77 const SyncStatusCallback& callback) OVERRIDE; | 79 const SyncStatusCallback& callback) OVERRIDE; |
| 78 virtual void EnableOrigin( | 80 virtual void EnableOrigin( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 174 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 173 | 175 |
| 174 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | 176 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
| 175 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 177 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 } // namespace drive_backend | 180 } // namespace drive_backend |
| 179 } // namespace sync_file_system | 181 } // namespace sync_file_system |
| 180 | 182 |
| 181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 183 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| OLD | NEW |