diff options
Diffstat (limited to 'chrome/browser/extensions/updater/extension_updater.h')
-rw-r--r-- | chrome/browser/extensions/updater/extension_updater.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/browser/extensions/updater/extension_updater.h b/chrome/browser/extensions/updater/extension_updater.h index b178aec..3a40f7e 100644 --- a/chrome/browser/extensions/updater/extension_updater.h +++ b/chrome/browser/extensions/updater/extension_updater.h @@ -32,6 +32,7 @@ class Profile; namespace extensions { +class Blacklist; class ExtensionDownloader; class ExtensionPrefs; class ExtensionUpdaterTest; @@ -52,7 +53,8 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate, typedef base::Closure FinishedCallback; struct CheckParams { - // Creates a default CheckParams instance that checks for all extensions. + // Creates a default CheckParams instance that checks for all extensions and + // the extension blacklist. CheckParams(); ~CheckParams(); @@ -60,6 +62,9 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate, // all extensions will be included in the update check. std::list<std::string> ids; + // If true, the extension blacklist will also be updated. + bool check_blacklist; + // Normally extension updates get installed only when the extension is idle. // Setting this to true causes any updates that are found to be installed // right away. @@ -77,6 +82,7 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate, ExtensionPrefs* extension_prefs, PrefService* prefs, Profile* profile, + Blacklist* blacklist, int frequency_seconds); virtual ~ExtensionUpdater(); @@ -181,6 +187,13 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate, const PingResult& ping, const std::set<int>& request_id) OVERRIDE; + virtual void OnBlacklistDownloadFinished( + const std::string& data, + const std::string& package_hash, + const std::string& version, + const PingResult& ping, + const std::set<int>& request_id) OVERRIDE; + virtual bool GetPingDataForExtension( const std::string& id, ManifestFetchData::PingData* ping_data) OVERRIDE; @@ -229,6 +242,7 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate, ExtensionPrefs* extension_prefs_; PrefService* prefs_; Profile* profile_; + Blacklist* blacklist_; std::map<int, InProgressCheck> requests_in_progress_; int next_request_id_; |