| 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 #ifndef CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/values.h" |
| 12 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_client.h" | 14 #include "chromeos/dbus/dbus_client.h" |
| 14 #include "chromeos/dbus/dbus_client_implementation_type.h" | 15 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 15 #include "chromeos/dbus/nfc_client_helpers.h" | 16 #include "chromeos/dbus/nfc_client_helpers.h" |
| 16 #include "chromeos/dbus/nfc_property_set.h" | 17 #include "chromeos/dbus/nfc_property_set.h" |
| 17 #include "chromeos/dbus/nfc_record_client.h" | 18 #include "chromeos/dbus/nfc_record_client.h" |
| 18 #include "dbus/object_path.h" | 19 #include "dbus/object_path.h" |
| 19 #include "dbus/object_proxy.h" | 20 #include "dbus/object_proxy.h" |
| 20 #include "dbus/property.h" | 21 #include "dbus/property.h" |
| 21 | 22 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // "Language": "en", | 85 // "Language": "en", |
| 85 // "Representation": "Chrome OS rulez!" | 86 // "Representation": "Chrome OS rulez!" |
| 86 // }, | 87 // }, |
| 87 // { | 88 // { |
| 88 // "Type": "URI", | 89 // "Type": "URI", |
| 89 // "URI": "http://www.chromium.org" | 90 // "URI": "http://www.chromium.org" |
| 90 // }, | 91 // }, |
| 91 // etc. | 92 // etc. |
| 92 virtual void Push( | 93 virtual void Push( |
| 93 const dbus::ObjectPath& object_path, | 94 const dbus::ObjectPath& object_path, |
| 94 const NfcRecordClient::Attributes& attributes, | 95 const base::DictionaryValue& attributes, |
| 95 const base::Closure& callback, | 96 const base::Closure& callback, |
| 96 const nfc_client_helpers::ErrorCallback& error_callback) = 0; | 97 const nfc_client_helpers::ErrorCallback& error_callback) = 0; |
| 97 | 98 |
| 98 // Creates the instance. | 99 // Creates the instance. |
| 99 static NfcDeviceClient* Create(DBusClientImplementationType type, | 100 static NfcDeviceClient* Create(DBusClientImplementationType type, |
| 100 NfcAdapterClient* adapter_client); | 101 NfcAdapterClient* adapter_client); |
| 101 | 102 |
| 102 protected: | 103 protected: |
| 103 friend class NfcClientTest; | 104 friend class NfcClientTest; |
| 104 | 105 |
| 105 NfcDeviceClient(); | 106 NfcDeviceClient(); |
| 106 | 107 |
| 107 private: | 108 private: |
| 108 DISALLOW_COPY_AND_ASSIGN(NfcDeviceClient); | 109 DISALLOW_COPY_AND_ASSIGN(NfcDeviceClient); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace chromeos | 112 } // namespace chromeos |
| 112 | 113 |
| 113 #endif // CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ | 114 #endif // CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ |
| OLD | NEW |