| Index: chrome/browser/extensions/api/runtime/runtime_api.h
|
| diff --git a/chrome/browser/extensions/api/runtime/runtime_api.h b/chrome/browser/extensions/api/runtime/runtime_api.h
|
| index 4baa2f4c61f6bb119b458aa163a3d7b02c53730b..16fd02c413395903ae646a528485e6a0fd7e5c97 100644
|
| --- a/chrome/browser/extensions/api/runtime/runtime_api.h
|
| +++ b/chrome/browser/extensions/api/runtime/runtime_api.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
|
| #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
|
|
|
| +#include <string>
|
| +
|
| #include "chrome/browser/extensions/extension_function.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| @@ -21,6 +23,12 @@ class ExtensionHost;
|
|
|
| class RuntimeEventRouter {
|
| public:
|
| + enum RestartReason {
|
| + RESTART_REASON_APP_UPDATE,
|
| + RESTART_REASON_OS_UPDATE,
|
| + RESTART_REASON_PERIODIC,
|
| + };
|
| +
|
| // Dispatches the onStartup event to all currently-loaded extensions.
|
| static void DispatchOnStartupEvent(Profile* profile,
|
| const std::string& extension_id);
|
| @@ -37,8 +45,10 @@ class RuntimeEventRouter {
|
| const std::string& extension_id,
|
| const base::DictionaryValue* manifest);
|
|
|
| - // Dispatches the onBrowserUpdateAvailable event to all extensions.
|
| - static void DispatchOnBrowserUpdateAvailableEvent(Profile* profile);
|
| + // Dispatches the onRestartRequired event to the given app.
|
| + static void DispatchOnRestartRequiredEvent(Profile* profile,
|
| + const std::string& app_id,
|
| + RestartReason reason);
|
|
|
| // Does any work needed at extension uninstall (e.g. load uninstall url).
|
| static void OnExtensionUninstalled(Profile* profile,
|
|
|