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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full build. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h b/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
index fd2f3cc1c0c1254dbc22431c8ed391edafc0b263..0e77d7a1e228336c1eb6dea8694cf9deea6ee807 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
@@ -16,12 +16,11 @@ class BluetoothAdapter;
} // namespace device
namespace extensions {
-
namespace api {
// Base class for bluetooth extension functions. This class initializes
-// bluetooth adapter and calls DoWork() implemented by individual bluetooth
-// extension functions.
+// bluetooth adapter and calls (on the UI thread) DoWork() implemented by
+// individual bluetooth extension functions.
class BluetoothExtensionFunction : public UIThreadExtensionFunction {
public:
BluetoothExtensionFunction();
@@ -36,14 +35,13 @@ class BluetoothExtensionFunction : public UIThreadExtensionFunction {
void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter);
// Implemented by individual bluetooth extension functions, called
- // automatically once |adapter| has been initialized.
+ // automatically on the UI thread once |adapter| has been initialized.
virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0;
DISALLOW_COPY_AND_ASSIGN(BluetoothExtensionFunction);
};
} // namespace api
-
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_EXTENSION_FUNCTION_H_

Powered by Google App Engine
This is Rietveld 408576698