Chromium Code Reviews| Index: dbus/property.h |
| diff --git a/dbus/property.h b/dbus/property.h |
| index ea893dc6b9dcd595ab8db4451aaf1a0f162016eb..a284bfb4235beeb001932c49b22af05d5e3aa46a 100644 |
| --- a/dbus/property.h |
| +++ b/dbus/property.h |
| @@ -7,6 +7,8 @@ |
| #include <map> |
| #include <string> |
| +#include <tuple> |
|
hashimoto
2015/02/05 09:51:12
<tuple> is a C++11 library feature which is not st
dtapuska
2015/02/05 19:51:17
Done.
|
| +#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::tuple<std::vector<uint8_t>, uint16_t>>>:: |
| + PopValueFromReader(MessageReader* reader); |
| +template <> |
| +void Property<std::vector<std::tuple<std::vector<uint8_t>, uint16_t>>>:: |
| + AppendSetValueToWriter(MessageWriter* writer); |
| +extern template class Property< |
| + std::vector<std::tuple<std::vector<uint8_t>, uint16_t>>>; |
| + |
| } // namespace dbus |
| #endif // DBUS_PROPERTY_H_ |