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

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

Issue 329853004: Remove RefCountedGarbageCollected from EventTarget objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 , data(data) 55 , data(data)
56 { 56 {
57 } 57 }
58 58
59 MediaKeySession::PendingAction::~PendingAction() 59 MediaKeySession::PendingAction::~PendingAction()
60 { 60 {
61 } 61 }
62 62
63 MediaKeySession* MediaKeySession::create(ExecutionContext* context, blink::WebCo ntentDecryptionModule* cdm, MediaKeys* keys) 63 MediaKeySession* MediaKeySession::create(ExecutionContext* context, blink::WebCo ntentDecryptionModule* cdm, MediaKeys* keys)
64 { 64 {
65 MediaKeySession* session = adoptRefCountedGarbageCollected(new MediaKeySessi on(context, cdm, keys)); 65 MediaKeySession* session = adoptRefCountedGarbageCollectedWillBeNoop(new Med iaKeySession(context, cdm, keys));
66 session->suspendIfNeeded(); 66 session->suspendIfNeeded();
67 return session; 67 return session;
68 } 68 }
69 69
70 MediaKeySession::MediaKeySession(ExecutionContext* context, blink::WebContentDec ryptionModule* cdm, MediaKeys* keys) 70 MediaKeySession::MediaKeySession(ExecutionContext* context, blink::WebContentDec ryptionModule* cdm, MediaKeys* keys)
71 : ActiveDOMObject(context) 71 : ActiveDOMObject(context)
72 , m_keySystem(keys->keySystem()) 72 , m_keySystem(keys->keySystem())
73 , m_asyncEventQueue(GenericEventQueue::create(this)) 73 , m_asyncEventQueue(GenericEventQueue::create(this))
74 , m_session(adoptPtr(cdm->createSession(this))) 74 , m_session(adoptPtr(cdm->createSession(this)))
75 , m_keys(keys) 75 , m_keys(keys)
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 m_asyncEventQueue->close(); 270 m_asyncEventQueue->close();
271 } 271 }
272 272
273 void MediaKeySession::trace(Visitor* visitor) 273 void MediaKeySession::trace(Visitor* visitor)
274 { 274 {
275 visitor->trace(m_keys); 275 visitor->trace(m_keys);
276 EventTargetWithInlineData::trace(visitor); 276 EventTargetWithInlineData::trace(visitor);
277 } 277 }
278 278
279 } 279 }
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.h ('k') | Source/modules/filesystem/FileWriterBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698