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

Unified Diff: chrome/common/extensions/update_manifest.h

Issue 15908002: Differential updates for components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync to LKGR revision 207804. Created 7 years, 6 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/update_manifest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/update_manifest.h
diff --git a/chrome/common/extensions/update_manifest.h b/chrome/common/extensions/update_manifest.h
index d84774360fd83e26ffa1ff456299ddd6a715e198..bff70b40e4cea86e6d95645f297905db42bae763 100644
--- a/chrome/common/extensions/update_manifest.h
+++ b/chrome/common/extensions/update_manifest.h
@@ -15,13 +15,16 @@ class UpdateManifest {
// An update manifest looks like this:
//
- // <?xml version='1.0' encoding='UTF-8'?>
- // <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
- // <daystart elapsed_seconds='300' />
- // <app appid='12345'>
- // <updatecheck codebase='http://example.com/extension_1.2.3.4.crx'
- // version='1.2.3.4' prodversionmin='2.0.143.0'
- // hash="12345"/>
+ // <?xml version="1.0" encoding="UTF-8"?>
+ // <gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
+ // <daystart elapsed_seconds="300" />
+ // <app appid="12345" status="ok">
+ // <updatecheck codebase="http://example.com/extension_1.2.3.4.crx"
+ // hash="12345" size="9854" status="ok" version="1.2.3.4"
+ // prodversionmin="2.0.143.0"
+ // codebasediff="http://example.com/diff_1.2.3.4.crx"
+ // hashdiff="123" sizediff="101"
+ // fp="1.123" />
// </app>
// </gupdate>
//
@@ -33,6 +36,9 @@ class UpdateManifest {
// fetch the updated crx file, and the "prodversionmin" attribute refers to
// the minimum version of the chrome browser that the update applies to.
+ // The diff data members correspond to the differential update package, if
+ // a differential update is specified in the response.
+
// The result of parsing one <app> tag in an xml update check manifest.
struct Result {
Result();
@@ -41,8 +47,17 @@ class UpdateManifest {
std::string extension_id;
std::string version;
std::string browser_min_version;
- std::string package_hash;
+
+ // Attributes for the full update.
GURL crx_url;
+ std::string package_hash;
+ int size;
+ std::string package_fingerprint;
+
+ // Attributes for the differential update.
+ GURL diff_crx_url;
+ std::string diff_package_hash;
+ int diff_size;
};
static const int kNoDaystart = -1;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/update_manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698