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

Side by Side Diff: chromeos/dbus/nfc_record_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_manager_client.cc ('k') | chromeos/dbus/nfc_record_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_RECORD_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_NFC_RECORD_CLIENT_H_
6 #define CHROMEOS_DBUS_NFC_RECORD_CLIENT_H_ 6 #define CHROMEOS_DBUS_NFC_RECORD_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromeos/chromeos_export.h" 10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/dbus_client.h" 11 #include "chromeos/dbus/dbus_client.h"
12 #include "chromeos/dbus/dbus_client_implementation_type.h"
13 #include "chromeos/dbus/nfc_property_set.h" 12 #include "chromeos/dbus/nfc_property_set.h"
14 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
15 #include "dbus/object_proxy.h" 14 #include "dbus/object_proxy.h"
16 #include "dbus/property.h" 15 #include "dbus/property.h"
17 16
18 namespace chromeos { 17 namespace chromeos {
19 18
20 class NfcDeviceClient; 19 class NfcDeviceClient;
21 class NfcTagClient; 20 class NfcTagClient;
22 21
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // |object_path| parameter of observer methods to determine which record is 104 // |object_path| parameter of observer methods to determine which record is
106 // issuing the event. 105 // issuing the event.
107 virtual void AddObserver(Observer* observer) = 0; 106 virtual void AddObserver(Observer* observer) = 0;
108 virtual void RemoveObserver(Observer* observer) = 0; 107 virtual void RemoveObserver(Observer* observer) = 0;
109 108
110 // Obtain the properties for the NFC record with object path |object_path|; 109 // Obtain the properties for the NFC record with object path |object_path|;
111 // any values should be copied if needed. 110 // any values should be copied if needed.
112 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; 111 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0;
113 112
114 // Creates the instance. 113 // Creates the instance.
115 static NfcRecordClient* Create(DBusClientImplementationType type, 114 static NfcRecordClient* Create(NfcDeviceClient* device_client,
116 NfcDeviceClient* device_client,
117 NfcTagClient* tag_client); 115 NfcTagClient* tag_client);
118 116
119 protected: 117 protected:
120 friend class NfcClientTest; 118 friend class NfcClientTest;
121 119
122 NfcRecordClient(); 120 NfcRecordClient();
123 121
124 private: 122 private:
125 DISALLOW_COPY_AND_ASSIGN(NfcRecordClient); 123 DISALLOW_COPY_AND_ASSIGN(NfcRecordClient);
126 }; 124 };
127 125
128 } // namespace chromeos 126 } // namespace chromeos
129 127
130 #endif // CHROMEOS_DBUS_NFC_RECORD_CLIENT_H_ 128 #endif // CHROMEOS_DBUS_NFC_RECORD_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/nfc_manager_client.cc ('k') | chromeos/dbus/nfc_record_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698