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

Side by Side Diff: device/bluetooth/bluetooth_adapter_chromeos.h

Issue 748873004: Revert of bluetooth: Make device/bluetooth a shared library component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 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
« no previous file with comments | « device/bluetooth/bluetooth_adapter.h ('k') | device/bluetooth/bluetooth_adapter_factory.h » ('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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "chromeos/dbus/bluetooth_adapter_client.h" 13 #include "chromeos/dbus/bluetooth_adapter_client.h"
14 #include "chromeos/dbus/bluetooth_agent_service_provider.h" 14 #include "chromeos/dbus/bluetooth_agent_service_provider.h"
15 #include "chromeos/dbus/bluetooth_device_client.h" 15 #include "chromeos/dbus/bluetooth_device_client.h"
16 #include "chromeos/dbus/bluetooth_input_client.h" 16 #include "chromeos/dbus/bluetooth_input_client.h"
17 #include "dbus/object_path.h" 17 #include "dbus/object_path.h"
18 #include "device/bluetooth/bluetooth_adapter.h" 18 #include "device/bluetooth/bluetooth_adapter.h"
19 #include "device/bluetooth/bluetooth_device.h" 19 #include "device/bluetooth/bluetooth_device.h"
20 #include "device/bluetooth/bluetooth_export.h"
21 20
22 namespace device { 21 namespace device {
23 class BluetoothSocketThread; 22 class BluetoothSocketThread;
24 } // namespace device 23 } // namespace device
25 24
26 namespace chromeos { 25 namespace chromeos {
27 26
28 class BluetoothChromeOSTest; 27 class BluetoothChromeOSTest;
29 class BluetoothDeviceChromeOS; 28 class BluetoothDeviceChromeOS;
30 class BluetoothPairingChromeOS; 29 class BluetoothPairingChromeOS;
31 class BluetoothRemoteGattCharacteristicChromeOS; 30 class BluetoothRemoteGattCharacteristicChromeOS;
32 class BluetoothRemoteGattDescriptorChromeOS; 31 class BluetoothRemoteGattDescriptorChromeOS;
33 class BluetoothRemoteGattServiceChromeOS; 32 class BluetoothRemoteGattServiceChromeOS;
34 33
35 // The BluetoothAdapterChromeOS class implements BluetoothAdapter for the 34 // The BluetoothAdapterChromeOS class implements BluetoothAdapter for the
36 // Chrome OS platform. 35 // Chrome OS platform.
37 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS 36 class BluetoothAdapterChromeOS
38 : public device::BluetoothAdapter, 37 : public device::BluetoothAdapter,
39 public chromeos::BluetoothAdapterClient::Observer, 38 public chromeos::BluetoothAdapterClient::Observer,
40 public chromeos::BluetoothDeviceClient::Observer, 39 public chromeos::BluetoothDeviceClient::Observer,
41 public chromeos::BluetoothInputClient::Observer, 40 public chromeos::BluetoothInputClient::Observer,
42 public chromeos::BluetoothAgentServiceProvider::Delegate { 41 public chromeos::BluetoothAgentServiceProvider::Delegate {
43 public: 42 public:
44 static base::WeakPtr<BluetoothAdapter> CreateAdapter(); 43 static base::WeakPtr<BluetoothAdapter> CreateAdapter();
45 44
46 // BluetoothAdapter: 45 // BluetoothAdapter:
47 virtual void AddObserver( 46 virtual void AddObserver(
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Note: This should remain the last member so it'll be destroyed and 272 // Note: This should remain the last member so it'll be destroyed and
274 // invalidate its weak pointers before any other members are destroyed. 273 // invalidate its weak pointers before any other members are destroyed.
275 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; 274 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_;
276 275
277 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); 276 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS);
278 }; 277 };
279 278
280 } // namespace chromeos 279 } // namespace chromeos
281 280
282 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 281 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter.h ('k') | device/bluetooth/bluetooth_adapter_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698