Index: dbus/property.h |
diff --git a/dbus/property.h b/dbus/property.h |
index ea893dc6b9dcd595ab8db4451aaf1a0f162016eb..4515060e0296836c52af8cf0e61cafa240082487 100644 |
--- a/dbus/property.h |
+++ b/dbus/property.h |
@@ -7,6 +7,8 @@ |
#include <map> |
#include <string> |
+#include <utility> |
+#include <vector> |
#include "base/basictypes.h" |
#include "base/bind.h" |
@@ -158,7 +160,7 @@ class PropertyBase { |
// no knowledge of the contained type is required, this method returns |
// true if its expected type was found, false if not. |
// Implementation provided by specialization. |
- virtual bool PopValueFromReader(MessageReader*) = 0; |
+ virtual bool PopValueFromReader(MessageReader* reader) = 0; |
// Method used by PropertySet to append the set value to a MessageWriter, |
// no knowledge of the contained type is required. |
@@ -229,7 +231,7 @@ class CHROME_DBUS_EXPORT PropertySet { |
// Methods connected by ConnectSignals() and called by dbus:: when |
// a property is changed. Sub-classes may override if the property |
// changed signal provides different arguments. |
- virtual void ChangedReceived(Signal*); |
+ virtual void ChangedReceived(Signal* signal); |
virtual void ChangedConnected(const std::string& interface_name, |
const std::string& signal_name, |
bool success); |
@@ -376,7 +378,7 @@ class CHROME_DBUS_EXPORT Property : public PropertyBase { |
// Method used by PropertySet to retrieve the value from a MessageReader, |
// no knowledge of the contained type is required, this method returns |
// true if its expected type was found, false if not. |
- bool PopValueFromReader(MessageReader*) override; |
+ bool PopValueFromReader(MessageReader* reader) override; |
// Method used by PropertySet to append the set value to a MessageWriter, |
// no knowledge of the contained type is required. |
@@ -485,6 +487,23 @@ template <> void Property<std::vector<uint8> >::AppendSetValueToWriter( |
MessageWriter* writer); |
extern template class Property<std::vector<uint8> >; |
+template <> |
+bool Property<std::map<std::string, std::string>>::PopValueFromReader( |
+ MessageReader* reader); |
+template <> |
+void Property<std::map<std::string, std::string>>::AppendSetValueToWriter( |
+ MessageWriter* writer); |
+extern template class Property<std::map<std::string, std::string>>; |
+ |
+template <> |
+bool Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>:: |
+ PopValueFromReader(MessageReader* reader); |
+template <> |
+void Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>:: |
+ AppendSetValueToWriter(MessageWriter* writer); |
+extern template class Property< |
+ std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>; |
hashimoto
2015/02/06 07:45:12
It's unfortunate property.h should be changed to s
dtapuska
2015/02/06 15:56:01
Acknowledged.
|
+ |
} // namespace dbus |
#endif // DBUS_PROPERTY_H_ |