Chromium Code Reviews| Index: chrome/browser/extensions/extension_prefs.h |
| diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h |
| index 88a7d0bc1fcf579c143c3f34d3690de34d611db6..4ef2b69b3ad038d4ece8ec39122042d9917d1248 100644 |
| --- a/chrome/browser/extensions/extension_prefs.h |
| +++ b/chrome/browser/extensions/extension_prefs.h |
| @@ -384,25 +384,25 @@ class ExtensionPrefs : public ContentSettingsStore::Observer, |
| // We've downloaded an updated .crx file for the extension, but are waiting |
| // for idle time to install it. |
| - void SetIdleInstallInfo(const Extension* extension, |
| - Extension::State initial_state, |
| - const syncer::StringOrdinal& page_ordinal); |
| + void SetDelayedInstallInfo(const Extension* extension, |
| + Extension::State initial_state, |
| + const syncer::StringOrdinal& page_ordinal); |
| - // Removes any idle install information we have for the given |extension_id|. |
| - // Returns true if there was info to remove; false otherwise. |
| - bool RemoveIdleInstallInfo(const std::string& extension_id); |
| + // Removes any delay install information we have for the given |
|
Charlie Reis
2012/12/11 02:15:56
nit: delayed
awong
2012/12/11 03:34:23
Done.
|
| + // |extension_id|. Returns true if there was info to remove; false otherwise. |
| + bool RemoveDelayedInstallInfo(const std::string& extension_id); |
| // Update the prefs to finish the update for an extension. |
| - bool FinishIdleInstallInfo(const std::string& extension_id); |
| + bool FinishDelayedInstallInfo(const std::string& extension_id); |
| // Returns the ExtensionInfo from the prefs for idle install information for |
|
Charlie Reis
2012/12/11 02:15:56
nit: idle -> delayed
awong
2012/12/11 03:34:23
Done.
|
| // |extension_id|, if we have any. Otherwise returns NULL. |
| - scoped_ptr<ExtensionInfo> GetIdleInstallInfo( |
| + scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( |
| const std::string& extension_id) const; |
| // Returns information about all the extensions that have pending idle |
|
Charlie Reis
2012/12/11 02:15:56
pending idle -> delayed
awong
2012/12/11 03:34:23
Done.
|
| // install information. |
| - scoped_ptr<ExtensionsInfo> GetAllIdleInstallInfo() const; |
| + scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; |
| // We allow the web store to set a string containing login information when a |
| // purchase is made, so that when a user logs into sync with a different |
| @@ -503,6 +503,12 @@ class ExtensionPrefs : public ContentSettingsStore::Observer, |
| // prefs::kExtensionAllowedInstallSites for more information. |
| URLPatternSet GetAllowedInstallSites(); |
| + // Schedules garbage collection of an extension's on-disk data on the next |
| + // start of this ExtensionService. Applies only to extensions with isolated |
| + // storage. |
| + void SetNeedsStorageGarbageCollection(bool value); |
| + bool NeedsStorageGarbageCollection(); |
| + |
| private: |
| friend class ExtensionPrefsBlacklistedExtensions; // Unit test. |
| friend class ExtensionPrefsUninstallExtension; // Unit test. |