| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DRIVE_SYSTEM_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace google_apis { | 27 namespace google_apis { |
| 28 class DriveServiceInterface; | 28 class DriveServiceInterface; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace drive { | 31 namespace drive { |
| 32 | 32 |
| 33 class DownloadHandler; | 33 class DownloadHandler; |
| 34 class DriveCache; | 34 class DriveCache; |
| 35 class DriveFileSystemInterface; | 35 class DriveFileSystemInterface; |
| 36 class DrivePrefetcher; | |
| 37 class DriveResourceMetadata; | 36 class DriveResourceMetadata; |
| 38 class DriveWebAppsRegistry; | 37 class DriveWebAppsRegistry; |
| 39 class FileSystemProxy; | 38 class FileSystemProxy; |
| 40 class FileWriteHelper; | 39 class FileWriteHelper; |
| 41 class JobListInterface; | 40 class JobListInterface; |
| 42 class StaleCacheFilesRemover; | 41 class StaleCacheFilesRemover; |
| 43 class SyncClient; | 42 class SyncClient; |
| 44 | 43 |
| 45 // Interface for classes that need to observe events from DriveSystemService. | 44 // Interface for classes that need to observe events from DriveSystemService. |
| 46 // All events are notified on UI thread. | 45 // All events are notified on UI thread. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 162 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 164 scoped_ptr<DriveCache, util::DestroyHelper> cache_; | 163 scoped_ptr<DriveCache, util::DestroyHelper> cache_; |
| 165 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; | 164 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; |
| 166 scoped_ptr<JobScheduler> scheduler_; | 165 scoped_ptr<JobScheduler> scheduler_; |
| 167 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; | 166 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; |
| 168 scoped_ptr<DriveResourceMetadata, util::DestroyHelper> resource_metadata_; | 167 scoped_ptr<DriveResourceMetadata, util::DestroyHelper> resource_metadata_; |
| 169 scoped_ptr<DriveFileSystemInterface> file_system_; | 168 scoped_ptr<DriveFileSystemInterface> file_system_; |
| 170 scoped_ptr<FileWriteHelper> file_write_helper_; | 169 scoped_ptr<FileWriteHelper> file_write_helper_; |
| 171 scoped_ptr<DownloadHandler> download_handler_; | 170 scoped_ptr<DownloadHandler> download_handler_; |
| 172 scoped_ptr<SyncClient> sync_client_; | 171 scoped_ptr<SyncClient> sync_client_; |
| 173 scoped_ptr<DrivePrefetcher> prefetcher_; | |
| 174 scoped_ptr<StaleCacheFilesRemover> stale_cache_files_remover_; | 172 scoped_ptr<StaleCacheFilesRemover> stale_cache_files_remover_; |
| 175 scoped_refptr<FileSystemProxy> file_system_proxy_; | 173 scoped_refptr<FileSystemProxy> file_system_proxy_; |
| 176 | 174 |
| 177 ObserverList<DriveSystemServiceObserver> observers_; | 175 ObserverList<DriveSystemServiceObserver> observers_; |
| 178 | 176 |
| 179 // Note: This should remain the last member so it'll be destroyed and | 177 // Note: This should remain the last member so it'll be destroyed and |
| 180 // invalidate its weak pointers before any other members are destroyed. | 178 // invalidate its weak pointers before any other members are destroyed. |
| 181 base::WeakPtrFactory<DriveSystemService> weak_ptr_factory_; | 179 base::WeakPtrFactory<DriveSystemService> weak_ptr_factory_; |
| 182 DISALLOW_COPY_AND_ASSIGN(DriveSystemService); | 180 DISALLOW_COPY_AND_ASSIGN(DriveSystemService); |
| 183 }; | 181 }; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // ProfileKeyedServiceFactory: | 226 // ProfileKeyedServiceFactory: |
| 229 virtual ProfileKeyedService* BuildServiceInstanceFor( | 227 virtual ProfileKeyedService* BuildServiceInstanceFor( |
| 230 Profile* profile) const OVERRIDE; | 228 Profile* profile) const OVERRIDE; |
| 231 | 229 |
| 232 FactoryCallback factory_for_test_; | 230 FactoryCallback factory_for_test_; |
| 233 }; | 231 }; |
| 234 | 232 |
| 235 } // namespace drive | 233 } // namespace drive |
| 236 | 234 |
| 237 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ | 235 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ |
| OLD | NEW |