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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class DriveServiceInterface; | 22 class DriveServiceInterface; |
23 class DriveUploader; | 23 class DriveUploader; |
24 } | 24 } |
25 | 25 |
26 namespace drive { | 26 namespace drive { |
27 | 27 |
28 class DriveCache; | 28 class DriveCache; |
29 class DriveDownloadObserver; | 29 class DriveDownloadObserver; |
30 class DriveFileSystemInterface; | 30 class DriveFileSystemInterface; |
31 class DriveWebAppsRegistry; | 31 class DriveWebAppsRegistry; |
32 class FileWriteHelper; | |
33 class DriveSyncClient; | 32 class DriveSyncClient; |
34 class DrivePrefetcher; | 33 class DrivePrefetcher; |
| 34 class EventLogger; |
| 35 class FileWriteHelper; |
35 class StaleCacheFilesRemover; | 36 class StaleCacheFilesRemover; |
36 | 37 |
37 // DriveSystemService runs the Drive system, including the Drive file system | 38 // DriveSystemService runs the Drive system, including the Drive file system |
38 // implementation for the file manager, and some other sub systems. | 39 // implementation for the file manager, and some other sub systems. |
39 // | 40 // |
40 // The class is essentially a container that manages lifetime of the objects | 41 // The class is essentially a container that manages lifetime of the objects |
41 // that are used to run the Drive system. The DriveSystemService object is | 42 // that are used to run the Drive system. The DriveSystemService object is |
42 // created per-profile. | 43 // created per-profile. |
43 class DriveSystemService : public ProfileKeyedService, | 44 class DriveSystemService : public ProfileKeyedService, |
44 public syncer::InvalidationHandler { | 45 public syncer::InvalidationHandler { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 friend class DriveSystemServiceFactory; | 106 friend class DriveSystemServiceFactory; |
106 | 107 |
107 Profile* profile_; | 108 Profile* profile_; |
108 // True if Drive is disabled due to initialization errors. | 109 // True if Drive is disabled due to initialization errors. |
109 bool drive_disabled_; | 110 bool drive_disabled_; |
110 | 111 |
111 // True once this is registered to listen to the Drive updates. | 112 // True once this is registered to listen to the Drive updates. |
112 bool push_notification_registered_; | 113 bool push_notification_registered_; |
113 | 114 |
114 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 115 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 116 scoped_ptr<EventLogger> event_logger_; |
115 DriveCache* cache_; | 117 DriveCache* cache_; |
116 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; | 118 scoped_ptr<google_apis::DriveServiceInterface> drive_service_; |
117 scoped_ptr<google_apis::DriveUploader> uploader_; | 119 scoped_ptr<google_apis::DriveUploader> uploader_; |
118 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; | 120 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; |
119 scoped_ptr<DriveFileSystemInterface> file_system_; | 121 scoped_ptr<DriveFileSystemInterface> file_system_; |
120 scoped_ptr<FileWriteHelper> file_write_helper_; | 122 scoped_ptr<FileWriteHelper> file_write_helper_; |
121 scoped_ptr<DriveDownloadObserver> download_observer_; | 123 scoped_ptr<DriveDownloadObserver> download_observer_; |
122 scoped_ptr<DriveSyncClient> sync_client_; | 124 scoped_ptr<DriveSyncClient> sync_client_; |
123 scoped_ptr<DrivePrefetcher> prefetcher_; | 125 scoped_ptr<DrivePrefetcher> prefetcher_; |
124 scoped_ptr<StaleCacheFilesRemover> stale_cache_files_remover_; | 126 scoped_ptr<StaleCacheFilesRemover> stale_cache_files_remover_; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual ~DriveSystemServiceFactory(); | 175 virtual ~DriveSystemServiceFactory(); |
174 | 176 |
175 // ProfileKeyedServiceFactory: | 177 // ProfileKeyedServiceFactory: |
176 virtual ProfileKeyedService* BuildServiceInstanceFor( | 178 virtual ProfileKeyedService* BuildServiceInstanceFor( |
177 Profile* profile) const OVERRIDE; | 179 Profile* profile) const OVERRIDE; |
178 }; | 180 }; |
179 | 181 |
180 } // namespace drive | 182 } // namespace drive |
181 | 183 |
182 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_SYSTEM_SERVICE_H_ |
OLD | NEW |