OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/mediasource/WebKitSourceBufferList.h" | 32 #include "modules/mediasource/WebKitSourceBufferList.h" |
33 | 33 |
34 #include "core/events/Event.h" | 34 #include "core/events/Event.h" |
35 #include "core/events/GenericEventQueue.h" | 35 #include "core/events/GenericEventQueue.h" |
36 #include "modules/mediasource/WebKitSourceBuffer.h" | 36 #include "modules/mediasource/WebKitSourceBuffer.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 DEFINE_GC_INFO(WebKitSourceBufferList); | |
41 | |
42 WebKitSourceBufferList::WebKitSourceBufferList(ExecutionContext* context, Generi
cEventQueue* asyncEventQueue) | 40 WebKitSourceBufferList::WebKitSourceBufferList(ExecutionContext* context, Generi
cEventQueue* asyncEventQueue) |
43 : m_executionContext(context) | 41 : m_executionContext(context) |
44 , m_asyncEventQueue(asyncEventQueue) | 42 , m_asyncEventQueue(asyncEventQueue) |
45 { | 43 { |
46 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
47 } | 45 } |
48 | 46 |
49 unsigned long WebKitSourceBufferList::length() const | 47 unsigned long WebKitSourceBufferList::length() const |
50 { | 48 { |
51 return m_list.size(); | 49 return m_list.size(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 { | 101 { |
104 return m_executionContext; | 102 return m_executionContext; |
105 } | 103 } |
106 | 104 |
107 void WebKitSourceBufferList::trace(Visitor* visitor) | 105 void WebKitSourceBufferList::trace(Visitor* visitor) |
108 { | 106 { |
109 visitor->trace(m_list); | 107 visitor->trace(m_list); |
110 } | 108 } |
111 | 109 |
112 } // namespace WebCore | 110 } // namespace WebCore |
OLD | NEW |