OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/dbus/introspect_util.h" | 5 #include "chrome/browser/chromeos/dbus/introspect_util.h" |
6 | 6 |
7 #include "chrome/common/libxml_utils.h" | 7 #include "third_party/libxml/chromium/libxml_utils.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 // String constants used for parsing D-Bus Introspection XML data. | 11 // String constants used for parsing D-Bus Introspection XML data. |
12 const char kInterfaceNode[] = "interface"; | 12 const char kInterfaceNode[] = "interface"; |
13 const char kInterfaceNameAttribute[] = "name"; | 13 const char kInterfaceNameAttribute[] = "name"; |
14 | 14 |
15 } | 15 } |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
(...skipping 23 matching lines...) Expand all Loading... |
41 if (!reader.NodeAttribute(kInterfaceNameAttribute, &interface_name)) | 41 if (!reader.NodeAttribute(kInterfaceNameAttribute, &interface_name)) |
42 continue; | 42 continue; |
43 | 43 |
44 interfaces.push_back(interface_name); | 44 interfaces.push_back(interface_name); |
45 } while (reader.Read()); | 45 } while (reader.Read()); |
46 | 46 |
47 return interfaces; | 47 return interfaces; |
48 } | 48 } |
49 | 49 |
50 } | 50 } |
OLD | NEW |