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

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

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOW_ENERGY_ CONNECTION_H_ 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_CONNECT ION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_ CONNECTION_H_ 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_CONNECT ION_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "device/bluetooth/bluetooth_gatt_connection.h" 9 #include "device/bluetooth/bluetooth_gatt_connection.h"
10 #include "extensions/browser/api/api_resource.h" 10 #include "extensions/browser/api/api_resource.h"
11 #include "extensions/browser/api/api_resource_manager.h" 11 #include "extensions/browser/api/api_resource_manager.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // An ApiResource wrapper for a device::BluetoothGattConnection. 15 // An ApiResource wrapper for a device::BluetoothGattConnection.
16 class BluetoothLowEnergyConnection : public ApiResource { 16 class BluetoothLowEnergyConnection : public ApiResource {
(...skipping 25 matching lines...) Expand all
42 42
43 // The connection is owned by this instance and will automatically disconnect 43 // The connection is owned by this instance and will automatically disconnect
44 // when deleted. 44 // when deleted.
45 scoped_ptr<device::BluetoothGattConnection> connection_; 45 scoped_ptr<device::BluetoothGattConnection> connection_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); 47 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection);
48 }; 48 };
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENER GY_CONNECTION_H_ 52 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_CONN ECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698