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

Side by Side Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.h

Issue 1915243003: API Bindings for GATT server functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adapter_and_tests
Patch Set: Created 4 years, 7 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 | « no previous file | chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698