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

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

Issue 778443002: bluetooth: Make device/bluetooth a shared library component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Set DelayLoadDLL settings on shared library as well 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_mac.h ('k') | device/bluetooth/bluetooth_device.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 (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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "device/bluetooth/bluetooth_adapter.h" 17 #include "device/bluetooth/bluetooth_adapter.h"
18 #include "device/bluetooth/bluetooth_export.h"
18 #include "device/bluetooth/bluetooth_task_manager_win.h" 19 #include "device/bluetooth/bluetooth_task_manager_win.h"
19 20
20 namespace base { 21 namespace base {
21 class SequencedTaskRunner; 22 class SequencedTaskRunner;
22 class Thread; 23 class Thread;
23 } // namespace base 24 } // namespace base
24 25
25 namespace device { 26 namespace device {
26 27
27 class BluetoothAdapterWinTest; 28 class BluetoothAdapterWinTest;
28 class BluetoothDevice; 29 class BluetoothDevice;
29 class BluetoothSocketThread; 30 class BluetoothSocketThread;
30 31
31 class BluetoothAdapterWin : public BluetoothAdapter, 32 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterWin
32 public BluetoothTaskManagerWin::Observer { 33 : public BluetoothAdapter,
34 public BluetoothTaskManagerWin::Observer {
33 public: 35 public:
34 static base::WeakPtr<BluetoothAdapter> CreateAdapter( 36 static base::WeakPtr<BluetoothAdapter> CreateAdapter(
35 const InitCallback& init_callback); 37 const InitCallback& init_callback);
36 38
37 // BluetoothAdapter: 39 // BluetoothAdapter:
38 virtual void AddObserver(BluetoothAdapter::Observer* observer) override; 40 virtual void AddObserver(BluetoothAdapter::Observer* observer) override;
39 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) override; 41 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) override;
40 virtual std::string GetAddress() const override; 42 virtual std::string GetAddress() const override;
41 virtual std::string GetName() const override; 43 virtual std::string GetName() const override;
42 virtual void SetName(const std::string& name, 44 virtual void SetName(const std::string& name,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // NOTE: This should remain the last member so it'll be destroyed and 142 // NOTE: This should remain the last member so it'll be destroyed and
141 // invalidate its weak pointers before any other members are destroyed. 143 // invalidate its weak pointers before any other members are destroyed.
142 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; 144 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_;
143 145
144 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); 146 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin);
145 }; 147 };
146 148
147 } // namespace device 149 } // namespace device
148 150
149 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ 151 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.h ('k') | device/bluetooth/bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698