diff options
Diffstat (limited to 'chrome/browser/extensions/extension_updater.cc')
-rw-r--r-- | chrome/browser/extensions/extension_updater.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc index 52a4b4fe..fc71437 100644 --- a/chrome/browser/extensions/extension_updater.cc +++ b/chrome/browser/extensions/extension_updater.cc @@ -68,6 +68,12 @@ static const int kMaxUpdateFrequencySeconds = 60 * 60 * 24 * 7; // 7 days // request. We want to stay under 2K because of proxies, etc. static const int kExtensionsManifestMaxURLSize = 2000; +ManifestFetchData::ManifestFetchData(GURL update_url) + : base_url_(update_url), + full_url_(update_url) { +} + +ManifestFetchData::~ManifestFetchData() {} // The format for request parameters in update checks is: // @@ -126,6 +132,10 @@ bool ManifestFetchData::AddExtension(std::string id, std::string version, return true; } +bool ManifestFetchData::Includes(std::string extension_id) const { + return extension_ids_.find(extension_id) != extension_ids_.end(); +} + bool ManifestFetchData::DidPing(std::string extension_id) const { std::map<std::string, int>::const_iterator i = ping_days_.find(extension_id); if (i != ping_days_.end()) { |