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

Side by Side Diff: Source/modules/mediasource/MediaSource.cpp

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 const AtomicString& MediaSource::endedKeyword() 84 const AtomicString& MediaSource::endedKeyword()
85 { 85 {
86 DEFINE_STATIC_LOCAL(const AtomicString, ended, ("ended", AtomicString::Const ructFromLiteral)); 86 DEFINE_STATIC_LOCAL(const AtomicString, ended, ("ended", AtomicString::Const ructFromLiteral));
87 return ended; 87 return ended;
88 } 88 }
89 89
90 MediaSource* MediaSource::create(ExecutionContext* context) 90 MediaSource* MediaSource::create(ExecutionContext* context)
91 { 91 {
92 MediaSource* mediaSource(adoptRefCountedGarbageCollectedWillBeNoop(new Media Source(context))); 92 MediaSource* mediaSource = new MediaSource(context);
93 mediaSource->suspendIfNeeded(); 93 mediaSource->suspendIfNeeded();
94 return mediaSource; 94 return mediaSource;
95 } 95 }
96 96
97 MediaSource::MediaSource(ExecutionContext* context) 97 MediaSource::MediaSource(ExecutionContext* context)
98 : ActiveDOMObject(context) 98 : ActiveDOMObject(context)
99 , m_readyState(closedKeyword()) 99 , m_readyState(closedKeyword())
100 , m_asyncEventQueue(GenericEventQueue::create(this)) 100 , m_asyncEventQueue(GenericEventQueue::create(this))
101 , m_attachedElement(nullptr) 101 , m_attachedElement(nullptr)
102 , m_sourceBuffers(SourceBufferList::create(executionContext(), m_asyncEventQ ueue.get())) 102 , m_sourceBuffers(SourceBufferList::create(executionContext(), m_asyncEventQ ueue.get()))
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 585
586 m_asyncEventQueue->enqueueEvent(event.release()); 586 m_asyncEventQueue->enqueueEvent(event.release());
587 } 587 }
588 588
589 URLRegistry& MediaSource::registry() const 589 URLRegistry& MediaSource::registry() const
590 { 590 {
591 return MediaSourceRegistry::registry(); 591 return MediaSourceRegistry::registry();
592 } 592 }
593 593
594 } // namespace blink 594 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.cpp ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698