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

Unified Diff: extensions/browser/api/runtime/runtime_api_delegate.h

Issue 1970613003: Add a new app API to enable watchdog behavior restarts in kiosk apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing include Created 4 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
Index: extensions/browser/api/runtime/runtime_api_delegate.h
diff --git a/extensions/browser/api/runtime/runtime_api_delegate.h b/extensions/browser/api/runtime/runtime_api_delegate.h
index 21e9a6e271c92ac7ff601d66be9af8fef3bee8bc..926d635ce0713c5f86f46274a595d4a2564e57d5 100644
--- a/extensions/browser/api/runtime/runtime_api_delegate.h
+++ b/extensions/browser/api/runtime/runtime_api_delegate.h
@@ -75,6 +75,10 @@ class RuntimeAPIDelegate {
// options page was opened, false otherwise. See the docs of the
// chrome.runtime.openOptionsPage function for the gritty details.
virtual bool OpenOptionsPage(const Extension* extension);
+
+ // Sets the callback that will be invoked when the host device is being
+ // shutdown or restarted.
+ virtual void SetOnDeviceShutdownCallback(const base::Closure& callback) = 0;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698