OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTI
SEMENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTI
SEMENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTI
SEMENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTI
SEMENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ
y_event_router.h" | 11 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ
y_event_router.h" |
12 #include "device/bluetooth/bluetooth_advertisement.h" | 12 #include "device/bluetooth/bluetooth_advertisement.h" |
13 #include "extensions/browser/api/api_resource.h" | 13 #include "extensions/browser/api/api_resource.h" |
14 #include "extensions/browser/api/api_resource_manager.h" | 14 #include "extensions/browser/api/api_resource_manager.h" |
15 | 15 |
16 namespace device { | 16 namespace device { |
17 class BluetoothAdvertisement; | 17 class BluetoothAdvertisement; |
18 } // namespace device | 18 } // namespace device |
19 | 19 |
20 namespace apibtle = extensions::api::bluetooth_low_energy; | |
21 | |
22 namespace extensions { | 20 namespace extensions { |
23 | 21 |
24 // Representation of advertisement instances from the "bluetooth" namespace, | 22 // Representation of advertisement instances from the "bluetooth" namespace, |
25 // abstracting the underlying BluetoothAdvertisementXxx class. All methods | 23 // abstracting the underlying BluetoothAdvertisementXxx class. All methods |
26 // must be called on the |kThreadId| thread. | 24 // must be called on the |kThreadId| thread. |
27 class BluetoothApiAdvertisement : public ApiResource { | 25 class BluetoothApiAdvertisement : public ApiResource { |
28 public: | 26 public: |
29 BluetoothApiAdvertisement(const std::string& owner_extension_id, | 27 BluetoothApiAdvertisement(const std::string& owner_extension_id, |
30 scoped_refptr<device::BluetoothAdvertisement>); | 28 scoped_refptr<device::BluetoothAdvertisement>); |
31 ~BluetoothApiAdvertisement() override; | 29 ~BluetoothApiAdvertisement() override; |
(...skipping 16 matching lines...) Expand all Loading... |
48 | 46 |
49 // The underlying advertisement instance. | 47 // The underlying advertisement instance. |
50 scoped_refptr<device::BluetoothAdvertisement> advertisement_; | 48 scoped_refptr<device::BluetoothAdvertisement> advertisement_; |
51 | 49 |
52 DISALLOW_COPY_AND_ASSIGN(BluetoothApiAdvertisement); | 50 DISALLOW_COPY_AND_ASSIGN(BluetoothApiAdvertisement); |
53 }; | 51 }; |
54 | 52 |
55 } // namespace extensions | 53 } // namespace extensions |
56 | 54 |
57 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVE
RTISEMENT_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVE
RTISEMENT_H_ |
OLD | NEW |