Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chromeos/dbus/nfc_tag_client.h

Issue 99903003: nfc: Various fixes to the NFC D-Bus client in chromeos/dbus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // "Language": "en", 96 // "Language": "en",
96 // "Representation": "Chrome OS rulez!" 97 // "Representation": "Chrome OS rulez!"
97 // }, 98 // },
98 // { 99 // {
99 // "Type": "URI", 100 // "Type": "URI",
100 // "URI": "http://www.chromium.org" 101 // "URI": "http://www.chromium.org"
101 // }, 102 // },
102 // etc. 103 // etc.
103 virtual void Write( 104 virtual void Write(
104 const dbus::ObjectPath& object_path, 105 const dbus::ObjectPath& object_path,
105 const NfcRecordClient::Attributes& attributes, 106 const base::DictionaryValue& attributes,
106 const base::Closure& callback, 107 const base::Closure& callback,
107 const nfc_client_helpers::ErrorCallback& error_callback) = 0; 108 const nfc_client_helpers::ErrorCallback& error_callback) = 0;
108 109
109 // Creates the instance. 110 // Creates the instance.
110 static NfcTagClient* Create(DBusClientImplementationType type, 111 static NfcTagClient* Create(DBusClientImplementationType type,
111 NfcAdapterClient* adapter_client); 112 NfcAdapterClient* adapter_client);
112 113
113 protected: 114 protected:
114 friend class NfcClientTest; 115 friend class NfcClientTest;
115 116
116 NfcTagClient(); 117 NfcTagClient();
117 118
118 private: 119 private:
119 DISALLOW_COPY_AND_ASSIGN(NfcTagClient); 120 DISALLOW_COPY_AND_ASSIGN(NfcTagClient);
120 }; 121 };
121 122
122 } // namespace chromeos 123 } // namespace chromeos
123 124
124 #endif // CHROMEOS_DBUS_NFC_TAG_CLIENT_H_ 125 #endif // CHROMEOS_DBUS_NFC_TAG_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698