| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ | 6 #define CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // The <daystart> tag contains a "elapsed_seconds" attribute which refers to | 29 // The <daystart> tag contains a "elapsed_seconds" attribute which refers to |
| 30 // the server's notion of how many seconds it has been since midnight. | 30 // the server's notion of how many seconds it has been since midnight. |
| 31 // | 31 // |
| 32 // The "appid" attribute of the <app> tag refers to the unique id of the | 32 // The "appid" attribute of the <app> tag refers to the unique id of the |
| 33 // extension. The "codebase" attribute of the <updatecheck> tag is the url to | 33 // extension. The "codebase" attribute of the <updatecheck> tag is the url to |
| 34 // fetch the updated crx file, and the "prodversionmin" attribute refers to | 34 // fetch the updated crx file, and the "prodversionmin" attribute refers to |
| 35 // the minimum version of the chrome browser that the update applies to. | 35 // the minimum version of the chrome browser that the update applies to. |
| 36 | 36 |
| 37 // The result of parsing one <app> tag in an xml update check manifest. | 37 // The result of parsing one <app> tag in an xml update check manifest. |
| 38 struct Result { | 38 struct Result { |
| 39 Result(); |
| 40 ~Result(); |
| 41 |
| 39 std::string extension_id; | 42 std::string extension_id; |
| 40 std::string version; | 43 std::string version; |
| 41 std::string browser_min_version; | 44 std::string browser_min_version; |
| 42 std::string package_hash; | 45 std::string package_hash; |
| 43 GURL crx_url; | 46 GURL crx_url; |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 static const int kNoDaystart = -1; | 49 static const int kNoDaystart = -1; |
| 47 struct Results { | 50 struct Results { |
| 48 Results(); | 51 Results(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 69 Results results_; | 72 Results results_; |
| 70 std::string errors_; | 73 std::string errors_; |
| 71 | 74 |
| 72 // Helper function that adds parse error details to our errors_ string. | 75 // Helper function that adds parse error details to our errors_ string. |
| 73 void ParseError(const char* details, ...); | 76 void ParseError(const char* details, ...); |
| 74 | 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); | 78 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ | 81 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ |
| OLD | NEW |