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

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

Issue 227493006: Revert 262175 "* Replace "read" method with onReceiveXxx events." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h
===================================================================
--- trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h (revision 262179)
+++ trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h (working copy)
@@ -16,11 +16,12 @@
} // namespace device
namespace extensions {
+
namespace api {
// Base class for bluetooth extension functions. This class initializes
-// bluetooth adapter and calls (on the UI thread) DoWork() implemented by
-// individual bluetooth extension functions.
+// bluetooth adapter and calls DoWork() implemented by individual bluetooth
+// extension functions.
class BluetoothExtensionFunction : public UIThreadExtensionFunction {
public:
BluetoothExtensionFunction();
@@ -35,13 +36,14 @@
void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter);
// Implemented by individual bluetooth extension functions, called
- // automatically on the UI thread once |adapter| has been initialized.
+ // automatically 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