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

Side by Side Diff: Source/modules/encryptedmedia/MediaKeySession.h

Issue 651503002: Clean up forward declarations in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 24 matching lines...) Expand all
35 #include "public/platform/WebContentDecryptionModuleSession.h" 35 #include "public/platform/WebContentDecryptionModuleSession.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class ScriptPromise; 40 class ScriptPromise;
41 class ScriptState; 41 class ScriptState;
42 class GenericEventQueue; 42 class GenericEventQueue;
43 class MediaKeyError; 43 class MediaKeyError;
44 class MediaKeys; 44 class MediaKeys;
45 class WebContentDecryptionModule;
46 class WebString; 45 class WebString;
47 46
48 // References are held by JS only. However, even if all JS references are 47 // References are held by JS only. However, even if all JS references are
49 // dropped, it won't be garbage collected until close event received or 48 // dropped, it won't be garbage collected until close event received or
50 // MediaKeys goes away (as determined by the validity of a WeakPtr). This allows 49 // MediaKeys goes away (as determined by the validity of a WeakPtr). This allows
51 // the CDM to continue to fire events for this session, as long as the session 50 // the CDM to continue to fire events for this session, as long as the session
52 // is open. 51 // is open.
53 // 52 //
54 // WeakPtr<MediaKeys> is used instead of having MediaKeys and MediaKeySession 53 // WeakPtr<MediaKeys> is used instead of having MediaKeys and MediaKeySession
55 // keep references to each other, and then having to inform the other object 54 // keep references to each other, and then having to inform the other object
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP trWillBeMember<DOMException> > ClosedPromise; 134 typedef ScriptPromiseProperty<Member<MediaKeySession>, V8UndefinedType, RefP trWillBeMember<DOMException> > ClosedPromise;
136 Member<ClosedPromise> m_closedPromise; 135 Member<ClosedPromise> m_closedPromise;
137 136
138 HeapDeque<Member<PendingAction> > m_pendingActions; 137 HeapDeque<Member<PendingAction> > m_pendingActions;
139 Timer<MediaKeySession> m_actionTimer; 138 Timer<MediaKeySession> m_actionTimer;
140 }; 139 };
141 140
142 } // namespace blink 141 } // namespace blink
143 142
144 #endif // MediaKeySession_h 143 #endif // MediaKeySession_h
OLDNEW
« no previous file with comments | « Source/modules/device_orientation/DeviceOrientationDispatcher.h ('k') | Source/modules/encryptedmedia/MediaKeys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698