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

Side by Side Diff: chromeos/dbus/nfc_adapter_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/modem_messaging_client.h ('k') | chromeos/dbus/nfc_adapter_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_ADAPTER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_NFC_ADAPTER_CLIENT_H_
6 #define CHROMEOS_DBUS_NFC_ADAPTER_CLIENT_H_ 6 #define CHROMEOS_DBUS_NFC_ADAPTER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
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 "dbus/object_path.h" 16 #include "dbus/object_path.h"
18 #include "dbus/object_proxy.h" 17 #include "dbus/object_proxy.h"
19 #include "dbus/property.h" 18 #include "dbus/property.h"
20 19
21 namespace chromeos { 20 namespace chromeos {
22 21
23 class NfcManagerClient; 22 class NfcManagerClient;
24 23
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const base::Closure& callback, 102 const base::Closure& callback,
104 const nfc_client_helpers::ErrorCallback& error_callback) = 0; 103 const nfc_client_helpers::ErrorCallback& error_callback) = 0;
105 104
106 // Stops the polling loop for the adapter with object_path |object_path|. 105 // Stops the polling loop for the adapter with object_path |object_path|.
107 virtual void StopPollLoop( 106 virtual void StopPollLoop(
108 const dbus::ObjectPath& object_path, 107 const dbus::ObjectPath& object_path,
109 const base::Closure& callback, 108 const base::Closure& callback,
110 const nfc_client_helpers::ErrorCallback& error_callback) = 0; 109 const nfc_client_helpers::ErrorCallback& error_callback) = 0;
111 110
112 // Creates the instance. 111 // Creates the instance.
113 static NfcAdapterClient* Create(DBusClientImplementationType type, 112 static NfcAdapterClient* Create(NfcManagerClient* manager_client);
114 NfcManagerClient* manager_client);
115 113
116 protected: 114 protected:
117 friend class NfcClientTest; 115 friend class NfcClientTest;
118 116
119 NfcAdapterClient(); 117 NfcAdapterClient();
120 118
121 private: 119 private:
122 DISALLOW_COPY_AND_ASSIGN(NfcAdapterClient); 120 DISALLOW_COPY_AND_ASSIGN(NfcAdapterClient);
123 }; 121 };
124 122
125 } // namespace chromeos 123 } // namespace chromeos
126 124
127 #endif // CHROMEOS_DBUS_NFC_ADAPTER_CLIENT_H_ 125 #endif // CHROMEOS_DBUS_NFC_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/modem_messaging_client.h ('k') | chromeos/dbus/nfc_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698