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_TAG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_NFC_TAG_CLIENT_H_ |
6 #define CHROMEOS_DBUS_NFC_TAG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_NFC_TAG_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 "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
13 #include "chromeos/dbus/dbus_client.h" | 13 #include "chromeos/dbus/dbus_client.h" |
14 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
15 #include "chromeos/dbus/nfc_client_helpers.h" | 14 #include "chromeos/dbus/nfc_client_helpers.h" |
16 #include "chromeos/dbus/nfc_property_set.h" | 15 #include "chromeos/dbus/nfc_property_set.h" |
17 #include "chromeos/dbus/nfc_record_client.h" | 16 #include "chromeos/dbus/nfc_record_client.h" |
18 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
19 #include "dbus/object_proxy.h" | 18 #include "dbus/object_proxy.h" |
20 #include "dbus/property.h" | 19 #include "dbus/property.h" |
21 | 20 |
22 namespace chromeos { | 21 namespace chromeos { |
23 | 22 |
24 class NfcAdapterClient; | 23 class NfcAdapterClient; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // "URI": "http://www.chromium.org" | 99 // "URI": "http://www.chromium.org" |
101 // }, | 100 // }, |
102 // etc. | 101 // etc. |
103 virtual void Write( | 102 virtual void Write( |
104 const dbus::ObjectPath& object_path, | 103 const dbus::ObjectPath& object_path, |
105 const NfcRecordClient::Attributes& attributes, | 104 const NfcRecordClient::Attributes& attributes, |
106 const base::Closure& callback, | 105 const base::Closure& callback, |
107 const nfc_client_helpers::ErrorCallback& error_callback) = 0; | 106 const nfc_client_helpers::ErrorCallback& error_callback) = 0; |
108 | 107 |
109 // Creates the instance. | 108 // Creates the instance. |
110 static NfcTagClient* Create(DBusClientImplementationType type, | 109 static NfcTagClient* Create(NfcAdapterClient* adapter_client); |
111 NfcAdapterClient* adapter_client); | |
112 | 110 |
113 protected: | 111 protected: |
114 friend class NfcClientTest; | 112 friend class NfcClientTest; |
115 | 113 |
116 NfcTagClient(); | 114 NfcTagClient(); |
117 | 115 |
118 private: | 116 private: |
119 DISALLOW_COPY_AND_ASSIGN(NfcTagClient); | 117 DISALLOW_COPY_AND_ASSIGN(NfcTagClient); |
120 }; | 118 }; |
121 | 119 |
122 } // namespace chromeos | 120 } // namespace chromeos |
123 | 121 |
124 #endif // CHROMEOS_DBUS_NFC_TAG_CLIENT_H_ | 122 #endif // CHROMEOS_DBUS_NFC_TAG_CLIENT_H_ |
OLD | NEW |