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

Side by Side Diff: chromeos/dbus/bluetooth_profile_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
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_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_PROFILE_MANAGER_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 "base/values.h" 12 #include "base/values.h"
13 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
14 #include "chromeos/dbus/dbus_client.h" 14 #include "chromeos/dbus/dbus_client.h"
15 #include "chromeos/dbus/dbus_client_implementation_type.h"
16 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
17 16
18 namespace chromeos { 17 namespace chromeos {
19 18
20 // BluetoothProfileManagerClient is used to communicate with the profile 19 // BluetoothProfileManagerClient is used to communicate with the profile
21 // manager object of the Bluetooth daemon. 20 // manager object of the Bluetooth daemon.
22 class CHROMEOS_EXPORT BluetoothProfileManagerClient : public DBusClient { 21 class CHROMEOS_EXPORT BluetoothProfileManagerClient : public DBusClient {
23 public: 22 public:
24 // Species the role of the object within the profile. SYMMETRIC should be 23 // Species the role of the object within the profile. SYMMETRIC should be
25 // usually used unless the profile requires you specify as a CLIENT or as a 24 // usually used unless the profile requires you specify as a CLIENT or as a
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const ErrorCallback& error_callback) = 0; 87 const ErrorCallback& error_callback) = 0;
89 88
90 // Unregisters the profile with the D-Bus object path |agent_path| from the 89 // Unregisters the profile with the D-Bus object path |agent_path| from the
91 // remote profile manager. 90 // remote profile manager.
92 virtual void UnregisterProfile(const dbus::ObjectPath& profile_path, 91 virtual void UnregisterProfile(const dbus::ObjectPath& profile_path,
93 const base::Closure& callback, 92 const base::Closure& callback,
94 const ErrorCallback& error_callback) = 0; 93 const ErrorCallback& error_callback) = 0;
95 94
96 95
97 // Creates the instance. 96 // Creates the instance.
98 static BluetoothProfileManagerClient* Create( 97 static BluetoothProfileManagerClient* Create();
99 DBusClientImplementationType type);
100 98
101 // Constants used to indicate exceptional error conditions. 99 // Constants used to indicate exceptional error conditions.
102 static const char kNoResponseError[]; 100 static const char kNoResponseError[];
103 101
104 protected: 102 protected:
105 BluetoothProfileManagerClient(); 103 BluetoothProfileManagerClient();
106 104
107 private: 105 private:
108 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileManagerClient); 106 DISALLOW_COPY_AND_ASSIGN(BluetoothProfileManagerClient);
109 }; 107 };
110 108
111 } // namespace chromeos 109 } // namespace chromeos
112 110
113 #endif // CHROMEOS_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_ 111 #endif // CHROMEOS_DBUS_BLUETOOTH_PROFILE_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_input_client.cc ('k') | chromeos/dbus/bluetooth_profile_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698