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

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

Issue 980973003: apmanager: Add dbus implementation to chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change struct into class Created 5 years, 9 months 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
« no previous file with comments | « chromeos/dbus/dbus_client_bundle.cc ('k') | chromeos/dbus/dbus_thread_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DBUS_THREAD_MANAGER_H_ 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
14 #include "chromeos/dbus/dbus_client_bundle.h" 14 #include "chromeos/dbus/dbus_client_bundle.h"
15 15
16 namespace base { 16 namespace base {
17 class Thread; 17 class Thread;
18 } // namespace base 18 } // namespace base
19 19
20 namespace dbus { 20 namespace dbus {
21 class Bus; 21 class Bus;
22 class ObjectPath; 22 class ObjectPath;
23 } // namespace dbus 23 } // namespace dbus
24 24
25 namespace chromeos { 25 namespace chromeos {
26 26
27 // Style Note: Clients are sorted by names. 27 // Style Note: Clients are sorted by names.
28 class ApManagerClient;
28 class BluetoothAdapterClient; 29 class BluetoothAdapterClient;
29 class BluetoothAgentManagerClient; 30 class BluetoothAgentManagerClient;
30 class BluetoothDeviceClient; 31 class BluetoothDeviceClient;
31 class BluetoothGattCharacteristicClient; 32 class BluetoothGattCharacteristicClient;
32 class BluetoothGattDescriptorClient; 33 class BluetoothGattDescriptorClient;
33 class BluetoothGattManagerClient; 34 class BluetoothGattManagerClient;
34 class BluetoothGattServiceClient; 35 class BluetoothGattServiceClient;
35 class BluetoothInputClient; 36 class BluetoothInputClient;
36 class BluetoothMediaClient; 37 class BluetoothMediaClient;
37 class BluetoothMediaTransportClient; 38 class BluetoothMediaTransportClient;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 static DBusThreadManager* Get(); 112 static DBusThreadManager* Get();
112 113
113 // Returns true if |client| is stubbed. 114 // Returns true if |client| is stubbed.
114 bool IsUsingStub(DBusClientBundle::DBusClientType client); 115 bool IsUsingStub(DBusClientBundle::DBusClientType client);
115 116
116 // Returns various D-Bus bus instances, owned by DBusThreadManager. 117 // Returns various D-Bus bus instances, owned by DBusThreadManager.
117 dbus::Bus* GetSystemBus(); 118 dbus::Bus* GetSystemBus();
118 119
119 // All returned objects are owned by DBusThreadManager. Do not use these 120 // All returned objects are owned by DBusThreadManager. Do not use these
120 // pointers after DBusThreadManager has been shut down. 121 // pointers after DBusThreadManager has been shut down.
122 ApManagerClient* GetApManagerClient();
121 BluetoothAdapterClient* GetBluetoothAdapterClient(); 123 BluetoothAdapterClient* GetBluetoothAdapterClient();
122 BluetoothAgentManagerClient* GetBluetoothAgentManagerClient(); 124 BluetoothAgentManagerClient* GetBluetoothAgentManagerClient();
123 BluetoothDeviceClient* GetBluetoothDeviceClient(); 125 BluetoothDeviceClient* GetBluetoothDeviceClient();
124 BluetoothGattCharacteristicClient* GetBluetoothGattCharacteristicClient(); 126 BluetoothGattCharacteristicClient* GetBluetoothGattCharacteristicClient();
125 BluetoothGattDescriptorClient* GetBluetoothGattDescriptorClient(); 127 BluetoothGattDescriptorClient* GetBluetoothGattDescriptorClient();
126 BluetoothGattManagerClient* GetBluetoothGattManagerClient(); 128 BluetoothGattManagerClient* GetBluetoothGattManagerClient();
127 BluetoothGattServiceClient* GetBluetoothGattServiceClient(); 129 BluetoothGattServiceClient* GetBluetoothGattServiceClient();
128 BluetoothInputClient* GetBluetoothInputClient(); 130 BluetoothInputClient* GetBluetoothInputClient();
129 BluetoothMediaClient* GetBluetoothMediaClient(); 131 BluetoothMediaClient* GetBluetoothMediaClient();
130 BluetoothMediaTransportClient* GetBluetoothMediaTransportClient(); 132 BluetoothMediaTransportClient* GetBluetoothMediaTransportClient();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 friend class DBusThreadManager; 257 friend class DBusThreadManager;
256 258
257 DBusThreadManagerSetter(); 259 DBusThreadManagerSetter();
258 260
259 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); 261 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter);
260 }; 262 };
261 263
262 } // namespace chromeos 264 } // namespace chromeos
263 265
264 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ 266 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_client_bundle.cc ('k') | chromeos/dbus/dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698