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

Unified Diff: Source/modules/encryptedmedia/MediaKeysController.h

Issue 1159583002: Eagerly sweep MediaKeySession objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: improve comment Created 5 years, 7 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: Source/modules/encryptedmedia/MediaKeysController.h
diff --git a/Source/modules/encryptedmedia/MediaKeysController.h b/Source/modules/encryptedmedia/MediaKeysController.h
index e3c7a230525fe8a31341048c8eb9e4f1bfd645eb..450a6d0e8d747ea97b36f206ec13a5e0233bbb00 100644
--- a/Source/modules/encryptedmedia/MediaKeysController.h
+++ b/Source/modules/encryptedmedia/MediaKeysController.h
@@ -7,13 +7,11 @@
#include "core/page/Page.h"
#include "modules/ModulesExport.h"
-#include "wtf/PassOwnPtr.h"
namespace blink {
class ExecutionContext;
class MediaKeysClient;
-class WebContentDecryptionModule;
class WebEncryptedMediaClient;
class MODULES_EXPORT MediaKeysController final : public NoBaseWillBeGarbageCollected<MediaKeysController>, public WillBeHeapSupplement<Page> {
@@ -29,6 +27,10 @@ public:
private:
explicit MediaKeysController(MediaKeysClient*);
static const char* supplementName();
+
+ // Raw reference to the client implementation, which is currently owned
+ // by the WebView. Its lifetime extends past any m_client accesses.
+ // It is not on the Oilpan heap.
MediaKeysClient* m_client;
};
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeysClient.h ('k') | Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698