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 #ifndef CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 const dbus::ObjectPath& object_path, | 38 const dbus::ObjectPath& object_path, |
39 const IntrospectCallback& callback) = 0; | 39 const IntrospectCallback& callback) = 0; |
40 | 40 |
41 // Parses XML-formatted introspection data returned by | 41 // Parses XML-formatted introspection data returned by |
42 // org.freedesktop.DBus.Introspectable.Introspect and returns the list of | 42 // org.freedesktop.DBus.Introspectable.Introspect and returns the list of |
43 // interface names declared within. | 43 // interface names declared within. |
44 static std::vector<std::string> GetInterfacesFromIntrospectResult( | 44 static std::vector<std::string> GetInterfacesFromIntrospectResult( |
45 const std::string& xml_data); | 45 const std::string& xml_data); |
46 | 46 |
47 // Creates the instance | 47 // Creates the instance |
48 static IntrospectableClient* Create(DBusClientImplementationType type); | 48 static IntrospectableClient* Create(); |
49 | 49 |
50 protected: | 50 protected: |
51 IntrospectableClient(); | 51 IntrospectableClient(); |
52 | 52 |
53 private: | 53 private: |
54 DISALLOW_COPY_AND_ASSIGN(IntrospectableClient); | 54 DISALLOW_COPY_AND_ASSIGN(IntrospectableClient); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace chromeos | 57 } // namespace chromeos |
58 | 58 |
59 #endif // CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ | 59 #endif // CHROMEOS_DBUS_INTROSPECTABLE_CLIENT_H_ |
OLD | NEW |