OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |