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