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

Unified Diff: chrome/browser/chromeos/file_system_provider/queue.h

Issue 968763002: Fix aborting in throttled file system (FSP). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. Created 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_system_provider/queue.h
diff --git a/chrome/browser/chromeos/file_system_provider/queue.h b/chrome/browser/chromeos/file_system_provider/queue.h
index 7eca4f96dba929d3d794d4d0d92b1a7a1ec71ca0..559dcd655cfcfadf1273abf8930fb3faacf59da2 100644
--- a/chrome/browser/chromeos/file_system_provider/queue.h
+++ b/chrome/browser/chromeos/file_system_provider/queue.h
@@ -63,6 +63,11 @@ class Queue {
// abort callback is NULL).
void Abort(size_t token);
+ // Returns true if the task which is in the queue with |token| has been
+ // aborted. This method must not be called for tasks which are not in the
+ // queue.
+ bool IsAborted(size_t token);
+
// Marks the previously enqueued task as complete. Must be called for each
// enqueued task (unless aborted). Note, that Remove() must be called in order
// to remove the task from the queue if it hasn't been aborted earlier.
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698