| 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); |
| 68 Results& operator=(const Results& other); |
| 67 ~Results(); | 69 ~Results(); |
| 68 | 70 |
| 69 std::vector<Result> list; | 71 std::vector<Result> list; |
| 70 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present. | 72 // This will be >= 0, or kNoDaystart if the <daystart> tag was not present. |
| 71 int daystart_elapsed_seconds; | 73 int daystart_elapsed_seconds; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 UpdateManifest(); | 76 UpdateManifest(); |
| 75 ~UpdateManifest(); | 77 ~UpdateManifest(); |
| 76 | 78 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 87 Results results_; | 89 Results results_; |
| 88 std::string errors_; | 90 std::string errors_; |
| 89 | 91 |
| 90 // Helper function that adds parse error details to our errors_ string. | 92 // Helper function that adds parse error details to our errors_ string. |
| 91 void ParseError(const char* details, ...); | 93 void ParseError(const char* details, ...); |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); | 95 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ | 98 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ |
| OLD | NEW |