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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h

Issue 2583093002: Reduce SuspendableObjects (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/encryptedmedia/MediaKeySession.h
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
index 08adeb7a46e3c3a3b254be76b7f318abd7a61500..59b983753b663cff82c40bc0cf5143e6a2b3e383 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.h
@@ -28,8 +28,8 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/ScriptPromiseProperty.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/DOMArrayPiece.h"
-#include "core/dom/SuspendableObject.h"
#include "modules/EventTargetModules.h"
#include "modules/encryptedmedia/MediaKeyStatusMap.h"
#include "platform/Timer.h"
@@ -64,7 +64,7 @@ class MediaKeys;
class MediaKeySession final
: public EventTargetWithInlineData,
public ActiveScriptWrappable<MediaKeySession>,
- public SuspendableObject,
+ public ContextLifecycleObserver,
private WebContentDecryptionModuleSession::Client {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession);
@@ -99,7 +99,7 @@ class MediaKeySession final
// ScriptWrappable
bool hasPendingActivity() const final;
- // SuspendableObject
+ // ContextLifecycleObserver
void contextDestroyed() override;
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698