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

Unified Diff: components/update_client/task.h

Issue 1440393002: Reland of Change the update_client task runner behavior to continue on shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: components/update_client/task.h
diff --git a/components/update_client/task.h b/components/update_client/task.h
index a6d1f6c61948805ec0cc1e00cd852ea812bef658..0a5b7f32f92f77397917f14af56aec0737b80941 100644
--- a/components/update_client/task.h
+++ b/components/update_client/task.h
@@ -26,6 +26,11 @@
virtual void Run() = 0;
+ // Does a best effort attempt to make a task release its resources and stop
+ // soon. It is possible that a running task may complete even if this
+ // method is called.
+ virtual void Cancel() = 0;
+
// Returns the ids corresponding to the CRXs associated with this update task.
virtual std::vector<std::string> GetIds() const = 0;
};
« no previous file with comments | « components/component_updater/component_updater_service_unittest.cc ('k') | components/update_client/task_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698