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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
index f19b0a7cf1aa7ce074d8df16928af85f6a7bcd0c..0d4f5a8d50036a59a5833cc8cbc952c2f6b8faa0 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp
@@ -44,7 +44,7 @@ BluetoothRemoteGATTCharacteristic::BluetoothRemoteGATTCharacteristic(
ExecutionContext* context,
std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> webCharacteristic,
BluetoothRemoteGATTService* service)
- : ActiveDOMObject(context),
+ : SuspendableObject(context),
m_webCharacteristic(std::move(webCharacteristic)),
m_service(service),
m_stopped(false) {
@@ -63,7 +63,7 @@ BluetoothRemoteGATTCharacteristic* BluetoothRemoteGATTCharacteristic::create(
BluetoothRemoteGATTCharacteristic* characteristic =
new BluetoothRemoteGATTCharacteristic(
context, std::move(webCharacteristic), service);
- // See note in ActiveDOMObject about suspendIfNeeded.
+ // See note in SuspendableObject about suspendIfNeeded.
characteristic->suspendIfNeeded();
return characteristic;
}
@@ -90,7 +90,7 @@ void BluetoothRemoteGATTCharacteristic::notifyCharacteristicObjectRemoved() {
if (!m_stopped) {
m_stopped = true;
WebBluetooth* webbluetooth = BluetoothSupplement::fromExecutionContext(
- ActiveDOMObject::getExecutionContext());
+ SuspendableObject::getExecutionContext());
webbluetooth->characteristicObjectRemoved(
m_webCharacteristic->characteristicInstanceID, this);
}
@@ -103,7 +103,7 @@ const WTF::AtomicString& BluetoothRemoteGATTCharacteristic::interfaceName()
ExecutionContext* BluetoothRemoteGATTCharacteristic::getExecutionContext()
const {
- return ActiveDOMObject::getExecutionContext();
+ return SuspendableObject::getExecutionContext();
}
void BluetoothRemoteGATTCharacteristic::addedEventListener(
@@ -403,7 +403,7 @@ DEFINE_TRACE(BluetoothRemoteGATTCharacteristic) {
visitor->trace(m_properties);
visitor->trace(m_value);
EventTargetWithInlineData::trace(visitor);
- ActiveDOMObject::trace(visitor);
+ SuspendableObject::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698