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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 14973007: Auto-install/uninstall shared module dependencies for extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 7 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: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index c4a9b3eaa8cd1a756887e54cbec7f7a24a75b1a7..d75e62fc1603b246edb675f72d04ba516bc60ed9 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -395,10 +395,18 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
scoped_ptr<ExtensionInfo> GetInstalledExtensionInfo(
const std::string& extension_id) const;
+ enum DelayReason {
asargent_no_longer_on_chrome 2013/06/13 05:47:16 Since the literal values of these are stored in us
Matt Perry 2013/06/13 17:42:59 Also, move this to the top of the class.
elijahtaylor1 2013/06/13 23:32:09 Done.
elijahtaylor1 2013/06/13 23:32:09 Done.
+ DELAY_REASON_NONE = 0,
+ DELAY_REASON_GLOBAL = 1,
asargent_no_longer_on_chrome 2013/06/13 05:47:16 nit: it's not immediately obvious what GLOBAL mean
elijahtaylor1 2013/06/13 23:32:09 Done.
+ DELAY_REASON_WAIT_FOR_IDLE = 2,
+ DELAY_REASON_WAIT_FOR_IMPORTS = 3,
+ };
+
// We've downloaded an updated .crx file for the extension, but are waiting
- // for idle time to install it.
+ // to install it.
void SetDelayedInstallInfo(const Extension* extension,
Extension::State initial_state,
+ DelayReason delay_reason,
const syncer::StringOrdinal& page_ordinal);
// Removes any delayed install information we have for the given
@@ -413,6 +421,8 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
scoped_ptr<ExtensionInfo> GetDelayedInstallInfo(
const std::string& extension_id) const;
+ DelayReason GetDelayedInstallReason(const std::string& extension_id) const;
+
// Returns information about all the extensions that have delayed install
// information.
scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const;
@@ -463,6 +473,9 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
// Returns the creation flags mask for the extension.
int GetCreationFlags(const std::string& extension_id) const;
+ // Returns the creation flags mask for a delayed install extension.
+ int GetDelayedInstallCreationFlags(const std::string& extension_id) const;
+
// Returns true if the extension was installed from the Chrome Web Store.
bool IsFromWebStore(const std::string& extension_id) const;

Powered by Google App Engine
This is Rietveld 408576698