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

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

Issue 17101020: Support cancellation of non-yet-running jobs in drive::JobScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix failures in tests. Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/job_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/job_queue.h
diff --git a/chrome/browser/chromeos/drive/job_queue.h b/chrome/browser/chromeos/drive/job_queue.h
index 0659ce992d6134976a4d11ce2d710ed5fe5df0ae..3fcba94ce70e694d9e2a8ca78b1737f24f505f78 100644
--- a/chrome/browser/chromeos/drive/job_queue.h
+++ b/chrome/browser/chromeos/drive/job_queue.h
@@ -46,6 +46,9 @@ class JobQueue {
// Gets the total number of jobs in the queue.
size_t GetNumberOfJobs() const;
+ // Removes the job from the queue.
+ void Remove(JobID id);
+
private:
size_t num_max_concurrent_jobs_;
std::vector<std::deque<JobID> > queue_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/job_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698