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

Unified Diff: chrome/browser/extensions/updater/extension_updater.h

Issue 2768573002: Send traffic-management headers from extension updater. (Closed)
Patch Set: Change the code according to mek's comments. Created 3 years, 9 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/updater/extension_updater.h
diff --git a/chrome/browser/extensions/updater/extension_updater.h b/chrome/browser/extensions/updater/extension_updater.h
index 65ddd996e12314241d427a9933f57c68a491c181..aa3731e3e0ec5e84c90b2fe258242df301c841d1 100644
--- a/chrome/browser/extensions/updater/extension_updater.h
+++ b/chrome/browser/extensions/updater/extension_updater.h
@@ -69,6 +69,11 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate,
// right away.
bool install_immediately;
+ // An extension update check can be originated by a user or by a timer.
+ // When the value of |fetch_priority| is FOREGROUND, the update request was
+ // initiated by a user.
+ ManifestFetchData::FetchPriority fetch_priority;
+
// Callback to call when the update check is complete. Can be null, if
// you're not interested in when this happens.
FinishedCallback callback;
@@ -167,7 +172,8 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate,
// ignoring |pending_ids| so the extension isn't fetched again.
void AddToDownloader(const ExtensionSet* extensions,
const std::list<std::string>& pending_ids,
- int request_id);
+ int request_id,
+ ManifestFetchData::FetchPriority fetch_priority);
// BaseTimer::ReceiverMethod callback.
void TimerFired();

Powered by Google App Engine
This is Rietveld 408576698