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

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

Issue 168363003: drive: Move ClientContext to job_scheduler.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/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.

Powered by Google App Engine
This is Rietveld 408576698