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

Unified Diff: chrome/browser/chromeos/drive/drive_system_service.h

Issue 14118006: Change owner of DriveScheduler from DriveFileSystem to DriveSystemService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/drive_system_service.h
diff --git a/chrome/browser/chromeos/drive/drive_system_service.h b/chrome/browser/chromeos/drive/drive_system_service.h
index cb130441643fcac1a550363da81770352806f01f..0ad2f0588ead45235ec711f75ed0cf2f3503beb0 100644
--- a/chrome/browser/chromeos/drive/drive_system_service.h
+++ b/chrome/browser/chromeos/drive/drive_system_service.h
@@ -15,6 +15,7 @@
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/drive/drive_file_error.h"
#include "chrome/browser/chromeos/drive/drive_file_system_util.h"
+#include "chrome/browser/chromeos/drive/drive_scheduler.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
#include "sync/notifier/invalidation_handler.h"
@@ -39,6 +40,7 @@ class DrivePrefetcher;
class DriveResourceMetadata;
class EventLogger;
class FileWriteHelper;
+class JobListInterface;
class StaleCacheFilesRemover;
// Interface for classes that need to observe events from DriveSystemService.
@@ -96,6 +98,7 @@ class DriveSystemService : public ProfileKeyedService,
DriveDownloadHandler* download_handler() { return download_handler_.get(); }
DriveWebAppsRegistry* webapps_registry() { return webapps_registry_.get(); }
EventLogger* event_logger() { return event_logger_.get(); }
+ JobListInterface* job_list() { return scheduler_.get(); }
// Clears all the local cache files and in-memory data, and remounts the
// file system. |callback| is called with true when this operation is done
@@ -163,6 +166,7 @@ class DriveSystemService : public ProfileKeyedService,
scoped_ptr<EventLogger> event_logger_;
scoped_ptr<DriveCache, util::DestroyHelper> cache_;
scoped_ptr<google_apis::DriveServiceInterface> drive_service_;
+ scoped_ptr<DriveScheduler> scheduler_;
scoped_ptr<DriveWebAppsRegistry> webapps_registry_;
scoped_ptr<DriveResourceMetadata, util::DestroyHelper> resource_metadata_;
scoped_ptr<DriveFileSystemInterface> file_system_;
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler_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