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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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 EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEMENT_ H_ 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEMENT_ H_
6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEMENT_ H_ 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEMENT_ H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "device/bluetooth/bluetooth_advertisement.h" 10 #include "device/bluetooth/bluetooth_advertisement.h"
11 #include "extensions/browser/api/api_resource.h" 11 #include "extensions/browser/api/api_resource.h"
12 #include "extensions/browser/api/api_resource_manager.h" 12 #include "extensions/browser/api/api_resource_manager.h"
13 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event _router.h" 13 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event _router.h"
14 14
15 namespace device { 15 namespace device {
16 class BluetoothAdvertisement; 16 class BluetoothAdvertisement;
17 } // namespace device 17 } // namespace device
18 18
19 namespace apibtle = extensions::core_api::bluetooth_low_energy; 19 namespace apibtle = extensions::api::bluetooth_low_energy;
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 // Representation of advertisement instances from the "bluetooth" namespace, 23 // Representation of advertisement instances from the "bluetooth" namespace,
24 // abstracting the underlying BluetoothAdvertisementXxx class. All methods 24 // abstracting the underlying BluetoothAdvertisementXxx class. All methods
25 // must be called on the |kThreadId| thread. 25 // must be called on the |kThreadId| thread.
26 class BluetoothApiAdvertisement : public ApiResource { 26 class BluetoothApiAdvertisement : public ApiResource {
27 public: 27 public:
28 BluetoothApiAdvertisement(const std::string& owner_extension_id, 28 BluetoothApiAdvertisement(const std::string& owner_extension_id,
29 scoped_refptr<device::BluetoothAdvertisement>); 29 scoped_refptr<device::BluetoothAdvertisement>);
(...skipping 17 matching lines...) Expand all
47 47
48 // The underlying advertisement instance. 48 // The underlying advertisement instance.
49 scoped_refptr<device::BluetoothAdvertisement> advertisement_; 49 scoped_refptr<device::BluetoothAdvertisement> advertisement_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(BluetoothApiAdvertisement); 51 DISALLOW_COPY_AND_ASSIGN(BluetoothApiAdvertisement);
52 }; 52 };
53 53
54 } // namespace extensions 54 } // namespace extensions
55 55
56 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEME NT_H_ 56 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_API_ADVERTISEME NT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698