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

Unified Diff: third_party/WebKit/Source/modules/webusb/USB.h

Issue 1855423002: Make USB a ContextLifecycleObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch back to ContextLifetimeObservers. Created 4 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: third_party/WebKit/Source/modules/webusb/USB.h
diff --git a/third_party/WebKit/Source/modules/webusb/USB.h b/third_party/WebKit/Source/modules/webusb/USB.h
index 841b0e485b1379a0baa33e3778fed4a3b26f2c35..8d406a6ec624d1db12fe6ddfcd069eaa26958e4a 100644
--- a/third_party/WebKit/Source/modules/webusb/USB.h
+++ b/third_party/WebKit/Source/modules/webusb/USB.h
@@ -7,8 +7,8 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
-#include "core/frame/LocalFrameLifecycleObserver.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/webusb/WebUSBClient.h"
@@ -21,7 +21,7 @@ class WebUSBDevice;
class USB final
: public RefCountedGarbageCollectedEventTargetWithInlineData<USB>
- , public LocalFrameLifecycleObserver
+ , public ContextLifecycleObserver
, public WebUSBClient::Observer {
DEFINE_WRAPPERTYPEINFO();
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(USB);
@@ -44,8 +44,8 @@ public:
ExecutionContext* getExecutionContext() const override;
const AtomicString& interfaceName() const override;
- // LocalFrameLifecycleObserver overrides.
- void willDetachFrameHost() override;
+ // ContextLifecycleObserver overrides.
+ void contextDestroyed() override;
// WebUSBClient::Observer overrides.
void onDeviceConnected(WebPassOwnPtr<WebUSBDevice>) override;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webusb/USB.cpp » ('j') | third_party/WebKit/Source/modules/webusb/USB.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698