| 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 COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ |
| 6 #define COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/basictypes.h" | 10 |
| 11 #include "base/macros.h" |
| 11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 namespace component_updater { | 14 namespace component_updater { |
| 14 | 15 |
| 15 // Parses responses for the update protocol version 3. | 16 // Parses responses for the update protocol version 3. |
| 16 // (http://code.google.com/p/omaha/wiki/ServerProtocol) | 17 // (http://code.google.com/p/omaha/wiki/ServerProtocol) |
| 17 // | 18 // |
| 18 // An update response looks like this: | 19 // An update response looks like this: |
| 19 // | 20 // |
| 20 // <?xml version="1.0" encoding="UTF-8"?> | 21 // <?xml version="1.0" encoding="UTF-8"?> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 // Adds parse error details to |errors_| string. | 127 // Adds parse error details to |errors_| string. |
| 127 void ParseError(const char* details, ...); | 128 void ParseError(const char* details, ...); |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(UpdateResponse); | 130 DISALLOW_COPY_AND_ASSIGN(UpdateResponse); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace component_updater | 133 } // namespace component_updater |
| 133 | 134 |
| 134 #endif // COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ | 135 #endif // COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ |
| OLD | NEW |