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 |
| 11 #include "base/macros.h" |
11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
12 | 13 |
13 class UpdateManifest { | 14 class UpdateManifest { |
14 public: | 15 public: |
15 // An update manifest looks like this: | 16 // An update manifest looks like this: |
16 // | 17 // |
17 // <?xml version="1.0" encoding="UTF-8"?> | 18 // <?xml version="1.0" encoding="UTF-8"?> |
18 // <gupdate xmlns="http://www.google.com/update2/response" protocol="2.0"> | 19 // <gupdate xmlns="http://www.google.com/update2/response" protocol="2.0"> |
19 // <daystart elapsed_seconds="300" /> | 20 // <daystart elapsed_seconds="300" /> |
20 // <app appid="12345" status="ok"> | 21 // <app appid="12345" status="ok"> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 Results results_; | 86 Results results_; |
86 std::string errors_; | 87 std::string errors_; |
87 | 88 |
88 // Helper function that adds parse error details to our errors_ string. | 89 // Helper function that adds parse error details to our errors_ string. |
89 void ParseError(const char* details, ...); | 90 void ParseError(const char* details, ...); |
90 | 91 |
91 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); | 92 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); |
92 }; | 93 }; |
93 | 94 |
94 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ | 95 #endif // EXTENSIONS_COMMON_UPDATE_MANIFEST_H_ |
OLD | NEW |