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

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

Issue 2385213003: Reflow comments in Source/modules/encryptedmedia (Closed)
Patch Set: fix comment Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // 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
51 // is open. 51 // is open.
52 // 52 //
53 // WeakMember<MediaKeys> is used instead of having MediaKeys and MediaKeySession 53 // WeakMember<MediaKeys> is used instead of having MediaKeys and MediaKeySession
54 // 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
55 // when it gets destroyed. When the Oilpan garbage collector determines that 55 // when it gets destroyed. When the Oilpan garbage collector determines that
56 // only WeakMember<> references remain to the MediaKeys object, the MediaKeys 56 // only WeakMember<> references remain to the MediaKeys object, the MediaKeys
57 // object will be finalized and the WeakMember<> references will be cleared 57 // object will be finalized and the WeakMember<> references will be cleared
58 // out(zeroed) by the garbage collector. 58 // out(zeroed) by the garbage collector.
59 // 59 //
60 // Because this object controls the lifetime of the WebContentDecryptionModuleSe ssion, 60 // Because this object controls the lifetime of the
61 // it may outlive any JavaScript references as long as the MediaKeys object is a live. 61 // WebContentDecryptionModuleSession, it may outlive any JavaScript references
62 // as long as the MediaKeys object is alive.
62 // The WebContentDecryptionModuleSession has the same lifetime as this object. 63 // The WebContentDecryptionModuleSession has the same lifetime as this object.
63 class MediaKeySession final 64 class MediaKeySession final
64 : public EventTargetWithInlineData, 65 : public EventTargetWithInlineData,
65 public ActiveScriptWrappable, 66 public ActiveScriptWrappable,
66 public ActiveDOMObject, 67 public ActiveDOMObject,
67 private WebContentDecryptionModuleSession::Client { 68 private WebContentDecryptionModuleSession::Client {
68 DEFINE_WRAPPERTYPEINFO(); 69 DEFINE_WRAPPERTYPEINFO();
69 USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession); 70 USING_GARBAGE_COLLECTED_MIXIN(MediaKeySession);
70 USING_PRE_FINALIZER(MediaKeySession, dispose); 71 USING_PRE_FINALIZER(MediaKeySession, dispose);
71 72
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 ClosedPromise; 153 ClosedPromise;
153 Member<ClosedPromise> m_closedPromise; 154 Member<ClosedPromise> m_closedPromise;
154 155
155 HeapDeque<Member<PendingAction>> m_pendingActions; 156 HeapDeque<Member<PendingAction>> m_pendingActions;
156 Timer<MediaKeySession> m_actionTimer; 157 Timer<MediaKeySession> m_actionTimer;
157 }; 158 };
158 159
159 } // namespace blink 160 } // namespace blink
160 161
161 #endif // MediaKeySession_h 162 #endif // MediaKeySession_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698