| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ | 5 #ifndef EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ |
| 6 #define EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ | 6 #define EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Attributes for the differential update. | 58 // Attributes for the differential update. |
| 59 GURL diff_crx_url; | 59 GURL diff_crx_url; |
| 60 std::string diff_package_hash; | 60 std::string diff_package_hash; |
| 61 int diff_size; | 61 int diff_size; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 static const int kNoDaystart = -1; | 64 static const int kNoDaystart = -1; |
| 65 struct Results { | 65 struct Results { |
| 66 Results(); | 66 Results(); |
| 67 Results(const Results& other); |
| 67 ~Results(); | 68 ~Results(); |
| 68 | 69 |
| 69 std::vector<Result> list; | 70 std::vector<Result> list; |
| 70 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present. | 71 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present. |
| 71 int daystart_elapsed_seconds; | 72 int daystart_elapsed_seconds; |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 UpdateManifest(); | 75 UpdateManifest(); |
| 75 ~UpdateManifest(); | 76 ~UpdateManifest(); |
| 76 | 77 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 87 Results results_; | 88 Results results_; |
| 88 std::string errors_; | 89 std::string errors_; |
| 89 | 90 |
| 90 // Helper function that adds parse error details to our errors_ string. | 91 // Helper function that adds parse error details to our errors_ string. |
| 91 void ParseError(const char* details, ...); | 92 void ParseError(const char* details, ...); |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); | 94 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ | 97 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ |
| OLD | NEW |