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> |
11 | 11 |
12 #include "base/logging.h" | |
Lei Zhang
2010/08/25 20:03:04
Can you exclude this bit? It's in my other CL alre
| |
13 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
14 | 13 |
15 class UpdateManifest { | 14 class UpdateManifest { |
16 public: | 15 public: |
17 | 16 |
18 // An update manifest looks like this: | 17 // An update manifest looks like this: |
19 // | 18 // |
20 // <?xml version='1.0' encoding='UTF-8'?> | 19 // <?xml version='1.0' encoding='UTF-8'?> |
21 // <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> | 20 // <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> |
22 // <daystart elapsed_seconds='300' /> | 21 // <daystart elapsed_seconds='300' /> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 Results results_; | 66 Results results_; |
68 std::string errors_; | 67 std::string errors_; |
69 | 68 |
70 // Helper function that adds parse error details to our errors_ string. | 69 // Helper function that adds parse error details to our errors_ string. |
71 void ParseError(const char* details, ...); | 70 void ParseError(const char* details, ...); |
72 | 71 |
73 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); | 72 DISALLOW_COPY_AND_ASSIGN(UpdateManifest); |
74 }; | 73 }; |
75 | 74 |
76 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ | 75 #endif // CHROME_COMMON_EXTENSIONS_UPDATE_MANIFEST_H_ |
OLD | NEW |