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

Side by Side Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ExceptionState; 43 class ExceptionState;
44 class ExecutionContext; 44 class ExecutionContext;
45 class HTMLMediaElement; 45 class HTMLMediaElement;
46 class MediaKeySession; 46 class MediaKeySession;
47 class ScriptState; 47 class ScriptState;
48 class WebContentDecryptionModule; 48 class WebContentDecryptionModule;
49 49
50 // References are held by JS and HTMLMediaElement. 50 // References are held by JS and HTMLMediaElement.
51 // The WebContentDecryptionModule has the same lifetime as this object. 51 // The WebContentDecryptionModule has the same lifetime as this object.
52 class MediaKeys : public GarbageCollectedFinalized<MediaKeys>, public ActiveDOMO bject, public ScriptWrappable { 52 class MediaKeys : public GarbageCollectedFinalized<MediaKeys>, public ActiveDOMO bject, public ScriptWrappable {
53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaKeys); 53 USING_GARBAGE_COLLECTED_MIXIN(MediaKeys);
54 DEFINE_WRAPPERTYPEINFO(); 54 DEFINE_WRAPPERTYPEINFO();
55 public: 55 public:
56 static MediaKeys* create(ExecutionContext*, const WebVector<WebEncryptedMedi aSessionType>& supportedSessionTypes, PassOwnPtr<WebContentDecryptionModule>); 56 static MediaKeys* create(ExecutionContext*, const WebVector<WebEncryptedMedi aSessionType>& supportedSessionTypes, PassOwnPtr<WebContentDecryptionModule>);
57 ~MediaKeys() override; 57 ~MediaKeys() override;
58 58
59 MediaKeySession* createSession(ScriptState*, const String& sessionTypeString , ExceptionState&); 59 MediaKeySession* createSession(ScriptState*, const String& sessionTypeString , ExceptionState&);
60 60
61 ScriptPromise setServerCertificate(ScriptState*, const DOMArrayPiece& server Certificate); 61 ScriptPromise setServerCertificate(ScriptState*, const DOMArrayPiece& server Certificate);
62 62
63 // Indicates that the provided HTMLMediaElement wants to use this object. 63 // Indicates that the provided HTMLMediaElement wants to use this object.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const WebVector<WebEncryptedMediaSessionType> m_supportedSessionTypes; 98 const WebVector<WebEncryptedMediaSessionType> m_supportedSessionTypes;
99 OwnPtr<WebContentDecryptionModule> m_cdm; 99 OwnPtr<WebContentDecryptionModule> m_cdm;
100 100
101 // Keep track of the HTMLMediaElement that references this object. Keeping 101 // Keep track of the HTMLMediaElement that references this object. Keeping
102 // a WeakMember so that HTMLMediaElement's lifetime isn't dependent on 102 // a WeakMember so that HTMLMediaElement's lifetime isn't dependent on
103 // this object. 103 // this object.
104 // Note that the referenced HTMLMediaElement must be destroyed 104 // Note that the referenced HTMLMediaElement must be destroyed
105 // before this object. This is due to WebMediaPlayerImpl (owned by 105 // before this object. This is due to WebMediaPlayerImpl (owned by
106 // HTMLMediaElement) possibly having a pointer to Decryptor created 106 // HTMLMediaElement) possibly having a pointer to Decryptor created
107 // by WebContentDecryptionModuleImpl (owned by this object). 107 // by WebContentDecryptionModuleImpl (owned by this object).
108 RawPtrWillBeWeakMember<HTMLMediaElement> m_mediaElement; 108 WeakMember<HTMLMediaElement> m_mediaElement;
109 109
110 // Keep track of whether this object has been reserved by HTMLMediaElement 110 // Keep track of whether this object has been reserved by HTMLMediaElement
111 // (i.e. a setMediaKeys operation is in progress). Destruction of this 111 // (i.e. a setMediaKeys operation is in progress). Destruction of this
112 // object will be prevented until the setMediaKeys() completes. 112 // object will be prevented until the setMediaKeys() completes.
113 bool m_reservedForMediaElement; 113 bool m_reservedForMediaElement;
114 114
115 HeapDeque<Member<PendingAction>> m_pendingActions; 115 HeapDeque<Member<PendingAction>> m_pendingActions;
116 Timer<MediaKeys> m_timer; 116 Timer<MediaKeys> m_timer;
117 }; 117 };
118 118
119 } // namespace blink 119 } // namespace blink
120 120
121 #endif // MediaKeys_h 121 #endif // MediaKeys_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698