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

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api_utils.h

Issue 10536159: Bluetooth Extension API: Add a discovery API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_UTILS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_UTILS_H_
7 #pragma once
8
9 #if defined(OS_CHROMEOS)
10
11 #include "base/values.h"
12 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h"
13 #include "chrome/common/extensions/api/experimental_bluetooth.h"
14
15 namespace extensions {
16 namespace api {
17 namespace experimental_bluetooth {
18
19 // Fill in a Device object from a chromeos::BluetoothDevice.
20 void BluetoothDeviceToApiDevice(
21 const chromeos::BluetoothDevice& device,
22 Device* out);
23
24 // The caller takes ownership of the returned pointer.
25 base::Value* BluetoothDeviceToValue(const chromeos::BluetoothDevice& device);
26
27 } // namespace experimental_bluetooth
28 } // namespace api
29 } // namespace extensions
30
31 #endif
32
33 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698