| 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_UPDATE_CLIENT_UPDATE_RESPONSE_H_ |
| 6 #define COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace component_updater { | 14 namespace update_client { |
| 15 | 15 |
| 16 // Parses responses for the update protocol version 3. | 16 // Parses responses for the update protocol version 3. |
| 17 // (http://code.google.com/p/omaha/wiki/ServerProtocol) | 17 // (http://code.google.com/p/omaha/wiki/ServerProtocol) |
| 18 // | 18 // |
| 19 // An update response looks like this: | 19 // An update response looks like this: |
| 20 // | 20 // |
| 21 // <?xml version="1.0" encoding="UTF-8"?> | 21 // <?xml version="1.0" encoding="UTF-8"?> |
| 22 // <response protocol="3.0" server="prod"> | 22 // <response protocol="3.0" server="prod"> |
| 23 // <daystart elapsed_seconds="56508"/> | 23 // <daystart elapsed_seconds="56508"/> |
| 24 // <app appid="{430FD4D0-B729-4F61-AA34-91526481799D}" status="ok"> | 24 // <app appid="{430FD4D0-B729-4F61-AA34-91526481799D}" status="ok"> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 private: | 123 private: |
| 124 Results results_; | 124 Results results_; |
| 125 std::string errors_; | 125 std::string errors_; |
| 126 | 126 |
| 127 // Adds parse error details to |errors_| string. | 127 // Adds parse error details to |errors_| string. |
| 128 void ParseError(const char* details, ...); | 128 void ParseError(const char* details, ...); |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(UpdateResponse); | 130 DISALLOW_COPY_AND_ASSIGN(UpdateResponse); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace component_updater | 133 } // namespace update_client |
| 134 | 134 |
| 135 #endif // COMPONENTS_COMPONENT_UPDATER_UPDATE_RESPONSE_H_ | 135 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_RESPONSE_H_ |
| OLD | NEW |