| Index: chrome/browser/chromeos/drive/job_scheduler.h
|
| diff --git a/chrome/browser/chromeos/drive/job_scheduler.h b/chrome/browser/chromeos/drive/job_scheduler.h
|
| index 60d34259038c5e77aedf8ed5e40b614a5a3a82e0..b7aed81c6c6a2324f221861e97bae4a5478007d8 100644
|
| --- a/chrome/browser/chromeos/drive/job_scheduler.h
|
| +++ b/chrome/browser/chromeos/drive/job_scheduler.h
|
| @@ -10,7 +10,6 @@
|
| #include "base/id_map.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/observer_list.h"
|
| -#include "chrome/browser/chromeos/drive/file_system_interface.h"
|
| #include "chrome/browser/chromeos/drive/job_list.h"
|
| #include "chrome/browser/chromeos/drive/job_queue.h"
|
| #include "chrome/browser/drive/drive_service_interface.h"
|
| @@ -27,6 +26,19 @@ namespace drive {
|
|
|
| class EventLogger;
|
|
|
| +// Priority of a job. Higher values are lower priority.
|
| +enum ContextType {
|
| + USER_INITIATED,
|
| + BACKGROUND,
|
| + // Indicates the number of values of this enum.
|
| + NUM_CONTEXT_TYPES,
|
| +};
|
| +
|
| +struct ClientContext {
|
| + explicit ClientContext(ContextType in_type) : type(in_type) {}
|
| + ContextType type;
|
| +};
|
| +
|
| // The JobScheduler is responsible for queuing and scheduling drive jobs.
|
| // Because jobs are executed concurrently by priority and retried for network
|
| // failures, there is no guarantee of orderings.
|
|
|