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

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

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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_api.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
index 9ce771ef1fba6316a703c2e9b4ddc6cf6116ece2..22afeaf0582c97d29aa16dcec901578d4e8f2839 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
@@ -142,7 +142,7 @@ class BluetoothGetDeviceFunction : public BluetoothExtensionFunction {
virtual ~BluetoothGetDeviceFunction();
};
-class BluetoothAddProfileFunction : public UIThreadExtensionFunction {
+class BluetoothAddProfileFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.addProfile", BLUETOOTH_ADDPROFILE)
@@ -150,7 +150,7 @@ class BluetoothAddProfileFunction : public UIThreadExtensionFunction {
protected:
virtual ~BluetoothAddProfileFunction();
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
virtual void RegisterProfile(
const device::BluetoothProfile::Options& options,
@@ -187,40 +187,40 @@ class BluetoothConnectFunction : public BluetoothExtensionFunction {
void OnErrorCallback(const std::string& error);
};
-class BluetoothDisconnectFunction : public UIThreadExtensionFunction {
+class BluetoothDisconnectFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.disconnect", BLUETOOTH_DISCONNECT)
protected:
virtual ~BluetoothDisconnectFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
-class BluetoothSendFunction : public UIThreadExtensionFunction {
+class BluetoothSendFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.send", BLUETOOTH_WRITE)
protected:
virtual ~BluetoothSendFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
-class BluetoothUpdateSocketFunction : public UIThreadExtensionFunction {
+class BluetoothUpdateSocketFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.updateSocket", BLUETOOTH_UPDATE_SOCKET)
protected:
virtual ~BluetoothUpdateSocketFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
-class BluetoothSetSocketPausedFunction : public UIThreadExtensionFunction {
+class BluetoothSetSocketPausedFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.setSocketPaused",
BLUETOOTH_SET_SOCKET_PAUSED)
@@ -228,30 +228,30 @@ class BluetoothSetSocketPausedFunction : public UIThreadExtensionFunction {
protected:
virtual ~BluetoothSetSocketPausedFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
-class BluetoothGetSocketFunction : public UIThreadExtensionFunction {
+class BluetoothGetSocketFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.getSocket", BLUETOOTH_GET_SOCKET)
protected:
virtual ~BluetoothGetSocketFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
-class BluetoothGetSocketsFunction : public UIThreadExtensionFunction {
+class BluetoothGetSocketsFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("bluetooth.getSockets", BLUETOOTH_GET_SOCKETS)
protected:
virtual ~BluetoothGetSocketsFunction() {}
- // UIThreadExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
+ // AsyncExtensionFunction:
+ virtual bool RunAsync() OVERRIDE;
};
class BluetoothGetLocalOutOfBandPairingDataFunction

Powered by Google App Engine
This is Rietveld 408576698