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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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()))
103 , m_activeSourceBuffers(SourceBufferList::create(executionContext(), m_async EventQueue.get())) 103 , m_activeSourceBuffers(SourceBufferList::create(executionContext(), m_async EventQueue.get()))
104 , m_isAddedToRegistry(false) 104 , m_isAddedToRegistry(false)
105 { 105 {
106 WTF_LOG(Media, "MediaSource::MediaSource %p", this); 106 WTF_LOG(Media, "MediaSource::MediaSource %p", this);
107 ScriptWrappable::init(this);
108 } 107 }
109 108
110 MediaSource::~MediaSource() 109 MediaSource::~MediaSource()
111 { 110 {
112 WTF_LOG(Media, "MediaSource::~MediaSource %p", this); 111 WTF_LOG(Media, "MediaSource::~MediaSource %p", this);
113 #if !ENABLE(OILPAN) 112 #if !ENABLE(OILPAN)
114 ASSERT(isClosed()); 113 ASSERT(isClosed());
115 #endif 114 #endif
116 } 115 }
117 116
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 563
565 m_asyncEventQueue->enqueueEvent(event.release()); 564 m_asyncEventQueue->enqueueEvent(event.release());
566 } 565 }
567 566
568 URLRegistry& MediaSource::registry() const 567 URLRegistry& MediaSource::registry() const
569 { 568 {
570 return MediaSourceRegistry::registry(); 569 return MediaSourceRegistry::registry();
571 } 570 }
572 571
573 } // namespace blink 572 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBVersionChangeEvent.cpp ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698