OLD | NEW |
---|---|
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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" | 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" |
13 #include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h" | 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_socket.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/extensions/api/experimental_bluetooth.h" | 15 #include "chrome/common/extensions/api/experimental_bluetooth.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class BluetoothDevice; | |
keybuk
2012/09/17 22:19:43
Why did this get added?
youngki
2012/09/18 18:19:56
Removed.
| |
20 | |
19 class ExtensionBluetoothEventRouter | 21 class ExtensionBluetoothEventRouter |
20 : public chromeos::BluetoothAdapter::Observer { | 22 : public chromeos::BluetoothAdapter::Observer { |
21 public: | 23 public: |
22 explicit ExtensionBluetoothEventRouter(Profile* profile); | 24 explicit ExtensionBluetoothEventRouter(Profile* profile); |
23 virtual ~ExtensionBluetoothEventRouter(); | 25 virtual ~ExtensionBluetoothEventRouter(); |
24 | 26 |
25 const chromeos::BluetoothAdapter& adapter() const { return *adapter_.get(); } | 27 const chromeos::BluetoothAdapter& adapter() const { return *adapter_.get(); } |
26 | 28 |
27 // GetMutableAdapter will never return NULL. | 29 // GetMutableAdapter will never return NULL. |
28 chromeos::BluetoothAdapter* GetMutableAdapter() { return adapter_.get(); } | 30 chromeos::BluetoothAdapter* GetMutableAdapter() { return adapter_.get(); } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 typedef ScopedVector<extensions::api::experimental_bluetooth::Device> | 88 typedef ScopedVector<extensions::api::experimental_bluetooth::Device> |
87 DeviceList; | 89 DeviceList; |
88 DeviceList discovered_devices_; | 90 DeviceList discovered_devices_; |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(ExtensionBluetoothEventRouter); | 92 DISALLOW_COPY_AND_ASSIGN(ExtensionBluetoothEventRouter); |
91 }; | 93 }; |
92 | 94 |
93 } // namespace chromeos | 95 } // namespace chromeos |
94 | 96 |
95 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_BLUETOOTH_EVENT_ROUTER_H_ |
OLD | NEW |