summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api/runtime/runtime_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/browser/api/runtime/runtime_api.h')
-rw-r--r--extensions/browser/api/runtime/runtime_api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/browser/api/runtime/runtime_api.h b/extensions/browser/api/runtime/runtime_api.h
index 28ff852..a9ed93f 100644
--- a/extensions/browser/api/runtime/runtime_api.h
+++ b/extensions/browser/api/runtime/runtime_api.h
@@ -93,6 +93,14 @@ class RuntimeAPI : public BrowserContextKeyedAPI,
// ProcessManagerObserver implementation:
void OnBackgroundHostStartup(const Extension* extension) override;
+ // Pref related functions that deals with info about installed extensions that
+ // has not been loaded yet.
+ // Used to send chrome.runtime.onInstalled event upon loading the extensions.
+ bool ReadPendingOnInstallInfoFromPref(const ExtensionId& extension_id,
+ base::Version* previous_version);
+ void RemovePendingOnInstallInfoFromPref(const ExtensionId& extension_id);
+ void StorePendingOnInstallInfoToPref(const Extension* extension);
+
scoped_ptr<RuntimeAPIDelegate> delegate_;
content::BrowserContext* browser_context_;