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

Unified Diff: extensions/browser/updater/manifest_fetch_data.h

Issue 465543004: Factor Chrome details out of update manifest fetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: extensions/browser/updater/manifest_fetch_data.h
diff --git a/chrome/browser/extensions/updater/manifest_fetch_data.h b/extensions/browser/updater/manifest_fetch_data.h
similarity index 88%
rename from chrome/browser/extensions/updater/manifest_fetch_data.h
rename to extensions/browser/updater/manifest_fetch_data.h
index 926b2d4a671f4a1a0b26763fe1a0bac0e22744ab..7565a87acb183cf725db2b8778d5f64397b7c5b1 100644
--- a/chrome/browser/extensions/updater/manifest_fetch_data.h
+++ b/extensions/browser/updater/manifest_fetch_data.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_MANIFEST_FETCH_DATA_H_
-#define CHROME_BROWSER_EXTENSIONS_UPDATER_MANIFEST_FETCH_DATA_H_
+#ifndef EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_H_
+#define EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_H_
#include <map>
#include <set>
@@ -14,6 +14,8 @@
namespace extensions {
+class ManifestFetchDataDelegate;
+
// To save on server resources we can request updates for multiple extensions
// in one manifest check. This class helps us keep track of the id's for a
// given fetch, building up the actual URL, and what if anything to include
@@ -46,7 +48,9 @@ class ManifestFetchData {
: rollcall_days(rollcall), active_days(active), is_enabled(enabled) {}
};
- ManifestFetchData(const GURL& update_url, int request_id);
+ ManifestFetchData(const GURL& update_url,
+ int request_id,
+ ManifestFetchDataDelegate* delegate);
~ManifestFetchData();
// Returns true if this extension information was successfully added. If the
@@ -96,9 +100,13 @@ class ManifestFetchData {
// one ManifestFetchData.
std::set<int> request_ids_;
+ // The delegate to use for fetch details. Must outlive this ManifestFetchData
+ // instance.
+ ManifestFetchDataDelegate* delegate_;
+
DISALLOW_COPY_AND_ASSIGN(ManifestFetchData);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_UPDATER_MANIFEST_FETCH_DATA_H_
+#endif // EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698