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

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_BLUETOOTH_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 #if defined(OS_CHROMEOS) 184 #if defined(OS_CHROMEOS)
185 void ReadCallback(const chromeos::BluetoothOutOfBandPairingData& data); 185 void ReadCallback(const chromeos::BluetoothOutOfBandPairingData& data);
186 void ErrorCallback(); 186 void ErrorCallback();
187 #endif 187 #endif
188 188
189 // ExtensionFunction: 189 // ExtensionFunction:
190 virtual bool RunImpl() OVERRIDE; 190 virtual bool RunImpl() OVERRIDE;
191 }; 191 };
192 192
193 class BluetoothStartDiscoveryFunction : public AsyncExtensionFunction {
194 public:
195 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.startDiscovery")
196
197 protected:
198 virtual ~BluetoothStartDiscoveryFunction() {}
199
200 // ExtensionFunction:
201 virtual bool RunImpl() OVERRIDE;
202
203 #if defined(OS_CHROMEOS)
204 private:
205 void OnSuccessCallback();
206 void OnErrorCallback();
207 #endif
208 };
209
210 class BluetoothStopDiscoveryFunction : public AsyncExtensionFunction {
211 public:
212 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.stopDiscovery")
213
214 protected:
215 virtual ~BluetoothStopDiscoveryFunction() {}
216
217 // ExtensionFunction:
218 virtual bool RunImpl() OVERRIDE;
219
220 #if defined(OS_CHROMEOS)
221 private:
222 void OnSuccessCallback();
223 void OnErrorCallback();
224 #endif
225 };
226
193 } // namespace api 227 } // namespace api
194 } // namespace extensions 228 } // namespace extensions
195 229
196 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ 230 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698