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

Side by Side Diff: chromeos/dbus/nfc_manager_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_device_client.cc ('k') | chromeos/dbus/nfc_manager_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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_NFC_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_NFC_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_NFC_MANAGER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
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 // NfcManagerClient is used to communicate with the neard Manager service. 19 // NfcManagerClient is used to communicate with the neard Manager service.
21 class CHROMEOS_EXPORT NfcManagerClient : public DBusClient { 20 class CHROMEOS_EXPORT NfcManagerClient : public DBusClient {
22 public: 21 public:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual ~NfcManagerClient(); 54 virtual ~NfcManagerClient();
56 55
57 // Adds and removes observers for events on the NFC manager. 56 // Adds and removes observers for events on the NFC manager.
58 virtual void AddObserver(Observer* observer) = 0; 57 virtual void AddObserver(Observer* observer) = 0;
59 virtual void RemoveObserver(Observer* observer) = 0; 58 virtual void RemoveObserver(Observer* observer) = 0;
60 59
61 // Obtains the properties of the NFC manager service. 60 // Obtains the properties of the NFC manager service.
62 virtual Properties* GetProperties() = 0; 61 virtual Properties* GetProperties() = 0;
63 62
64 // Creates the instance. 63 // Creates the instance.
65 static NfcManagerClient* Create(DBusClientImplementationType type); 64 static NfcManagerClient* Create();
66 65
67 protected: 66 protected:
68 friend class NfcClientTest; 67 friend class NfcClientTest;
69 68
70 NfcManagerClient(); 69 NfcManagerClient();
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(NfcManagerClient); 72 DISALLOW_COPY_AND_ASSIGN(NfcManagerClient);
74 }; 73 };
75 74
76 } // namespace chromeos 75 } // namespace chromeos
77 76
78 #endif // CHROMEOS_DBUS_NFC_MANAGER_CLIENT_H_ 77 #endif // CHROMEOS_DBUS_NFC_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/nfc_device_client.cc ('k') | chromeos/dbus/nfc_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698