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

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

Issue 813403005: [fsp] Fix unhappy MSAN build bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 b12fe5e19a9c7c29a9b87835fe524604a297cb7b..106a9039f12faae1c295e5ba1275078b7ff668ce 100644
--- a/chrome/browser/chromeos/file_system_provider/queue.h
+++ b/chrome/browser/chromeos/file_system_provider/queue.h
@@ -72,7 +72,17 @@ class Queue {
void Remove(size_t token);
private:
- struct Task;
+ // Information about an enqueued task which hasn't been removed, nor aborted.
+ struct Task {
+ Task();
+ Task(size_t token, const AbortableCallback& callback);
+ ~Task();
+
+ size_t token;
+ bool completed;
+ AbortableCallback callback;
+ AbortCallback abort_callback;
+ };
// Runs the next task from the pending queue if there is less than
// |max_in_parallel_| tasks running at once.
« 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