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

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

Issue 91413002: Remove fake client creation from DBusClients' Create() functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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
« no previous file with comments | « chromeos/dbus/nfc_client_unittest.cc ('k') | chromeos/dbus/nfc_device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 "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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // "URI": "http://www.chromium.org" 88 // "URI": "http://www.chromium.org"
90 // }, 89 // },
91 // etc. 90 // etc.
92 virtual void Push( 91 virtual void Push(
93 const dbus::ObjectPath& object_path, 92 const dbus::ObjectPath& object_path,
94 const NfcRecordClient::Attributes& attributes, 93 const NfcRecordClient::Attributes& attributes,
95 const base::Closure& callback, 94 const base::Closure& callback,
96 const nfc_client_helpers::ErrorCallback& error_callback) = 0; 95 const nfc_client_helpers::ErrorCallback& error_callback) = 0;
97 96
98 // Creates the instance. 97 // Creates the instance.
99 static NfcDeviceClient* Create(DBusClientImplementationType type, 98 static NfcDeviceClient* Create(NfcAdapterClient* adapter_client);
100 NfcAdapterClient* adapter_client);
101 99
102 protected: 100 protected:
103 friend class NfcClientTest; 101 friend class NfcClientTest;
104 102
105 NfcDeviceClient(); 103 NfcDeviceClient();
106 104
107 private: 105 private:
108 DISALLOW_COPY_AND_ASSIGN(NfcDeviceClient); 106 DISALLOW_COPY_AND_ASSIGN(NfcDeviceClient);
109 }; 107 };
110 108
111 } // namespace chromeos 109 } // namespace chromeos
112 110
113 #endif // CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_ 111 #endif // CHROMEOS_DBUS_NFC_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/nfc_client_unittest.cc ('k') | chromeos/dbus/nfc_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698