| 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;
|
|
|