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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h

Issue 2362173002: Clear Document::m_frame after dispatching ContextLifecycleObesrver::contextDestroyed (Closed)
Patch Set: temp Created 4 years, 3 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: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
index 5b33bf21c4ddfeda8043fbfbb8d12287f59b3b26..9b81bd820e7464f42c40f6c1c087b059b00ac07b 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
@@ -6,7 +6,7 @@
#define BluetoothDevice_h
#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/dom/ActiveDOMObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "modules/EventTargetModules.h"
#include "modules/bluetooth/BluetoothRemoteGATTServer.h"
#include "platform/heap/Heap.h"
@@ -29,7 +29,7 @@ class ScriptPromiseResolver;
// CallbackPromiseAdapter class comments.
class BluetoothDevice final
: public EventTargetWithInlineData
- , public ActiveDOMObject
+ , public ContextLifecycleObserver
, public WebBluetoothDevice {
USING_PRE_FINALIZER(BluetoothDevice, dispose);
DEFINE_WRAPPERTYPEINFO();
@@ -54,8 +54,8 @@ public:
// Called before the object gets garbage collected.
void dispose();
- // ActiveDOMObject interface.
- void stop() override;
+ // ContextLifecycleObserver interface.
+ void contextDestroyed() override;
// If gatt is connected then disconnects and sets gatt.connected to false.
// Returns true if gatt was disconnected.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698