OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/component_updater/update_response.h" | 5 #include "components/component_updater/update_response.h" |
6 | |
6 #include <algorithm> | 7 #include <algorithm> |
8 #include <libxml/tree.h> | |
9 | |
7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
8 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
12 #include "base/version.h" | 15 #include "base/version.h" |
13 #include "libxml/tree.h" | |
blundell
2014/08/12 12:33:49
How did this work before?
tommycli
2014/08/12 18:38:05
Done.
| |
14 #include "third_party/libxml/chromium/libxml_utils.h" | 16 #include "third_party/libxml/chromium/libxml_utils.h" |
15 | 17 |
16 namespace component_updater { | 18 namespace component_updater { |
17 | 19 |
18 static const char* kExpectedResponseProtocol = "3.0"; | 20 static const char* kExpectedResponseProtocol = "3.0"; |
19 | 21 |
20 UpdateResponse::UpdateResponse() {} | 22 UpdateResponse::UpdateResponse() {} |
21 UpdateResponse::~UpdateResponse() {} | 23 UpdateResponse::~UpdateResponse() {} |
22 | 24 |
23 UpdateResponse::Results::Results() : daystart_elapsed_seconds(kNoDaystart) {} | 25 UpdateResponse::Results::Results() : daystart_elapsed_seconds(kNoDaystart) {} |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
328 results_.list.push_back(result); | 330 results_.list.push_back(result); |
329 } else { | 331 } else { |
330 ParseError("%s", error.c_str()); | 332 ParseError("%s", error.c_str()); |
331 } | 333 } |
332 } | 334 } |
333 | 335 |
334 return true; | 336 return true; |
335 } | 337 } |
336 | 338 |
337 } // namespace component_updater | 339 } // namespace component_updater |
OLD | NEW |