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

Unified Diff: chrome/browser/chromeos/drive/job_scheduler.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 | « chrome/browser/chromeos/drive/job_queue_unittest.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc2c3715696c708920655486580dd1c2bb5f81c0..5dc2aa1ca6bfadb9cd09f3eea49cf480193d8ce2 100644
--- a/chrome/browser/chromeos/drive/job_scheduler.h
+++ b/chrome/browser/chromeos/drive/job_scheduler.h
@@ -208,6 +208,10 @@ class JobScheduler
// The callback to cancel the running job. It is returned from task.Run().
google_apis::CancelCallback cancel_callback;
+
+ // The callback to notify an error to the client of JobScheduler.
+ // This is used to notify cancel of a job that is not running yet.
+ base::Callback<void(google_apis::GDataErrorCode)> abort_callback;
};
// Parameters for DriveUploader::ResumeUploadFile.
« no previous file with comments | « chrome/browser/chromeos/drive/job_queue_unittest.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698