Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/browser/chromeos/drive/drive_system_service.h

Issue 14093022: Remove DrivePrefetcher and relevant flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: xxxxx Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_prefetcher_unittest.cc ('k') | chrome/browser/chromeos/drive/drive_system_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698