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

Side by Side Diff: Source/modules/mediasource/SourceBuffer.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 , m_appendBufferAsyncPartRunner(this, &SourceBuffer::appendBufferAsyncPart) 93 , m_appendBufferAsyncPartRunner(this, &SourceBuffer::appendBufferAsyncPart)
94 , m_pendingRemoveStart(-1) 94 , m_pendingRemoveStart(-1)
95 , m_pendingRemoveEnd(-1) 95 , m_pendingRemoveEnd(-1)
96 , m_removeAsyncPartRunner(this, &SourceBuffer::removeAsyncPart) 96 , m_removeAsyncPartRunner(this, &SourceBuffer::removeAsyncPart)
97 , m_streamMaxSizeValid(false) 97 , m_streamMaxSizeValid(false)
98 , m_streamMaxSize(0) 98 , m_streamMaxSize(0)
99 , m_appendStreamAsyncPartRunner(this, &SourceBuffer::appendStreamAsyncPart) 99 , m_appendStreamAsyncPartRunner(this, &SourceBuffer::appendStreamAsyncPart)
100 { 100 {
101 ASSERT(m_webSourceBuffer); 101 ASSERT(m_webSourceBuffer);
102 ASSERT(m_source); 102 ASSERT(m_source);
103 ScriptWrappable::init(this);
104 } 103 }
105 104
106 SourceBuffer::~SourceBuffer() 105 SourceBuffer::~SourceBuffer()
107 { 106 {
108 // Oilpan: a SourceBuffer might be finalized without having been 107 // Oilpan: a SourceBuffer might be finalized without having been
109 // explicitly removed first, hence the asserts below will not 108 // explicitly removed first, hence the asserts below will not
110 // hold. 109 // hold.
111 #if !ENABLE(OILPAN) 110 #if !ENABLE(OILPAN)
112 ASSERT(isRemoved()); 111 ASSERT(isRemoved());
113 ASSERT(!m_loader); 112 ASSERT(!m_loader);
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 } 717 }
719 718
720 void SourceBuffer::trace(Visitor* visitor) 719 void SourceBuffer::trace(Visitor* visitor)
721 { 720 {
722 visitor->trace(m_source); 721 visitor->trace(m_source);
723 visitor->trace(m_stream); 722 visitor->trace(m_stream);
724 EventTargetWithInlineData::trace(visitor); 723 EventTargetWithInlineData::trace(visitor);
725 } 724 }
726 725
727 } // namespace blink 726 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediasource/MediaSource.cpp ('k') | Source/modules/mediasource/SourceBufferList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698