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 25 matching lines...) Expand all Loading... |
36 #include "heap/Handle.h" | 36 #include "heap/Handle.h" |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class WebKitSourceBuffer; | 42 class WebKitSourceBuffer; |
43 class GenericEventQueue; | 43 class GenericEventQueue; |
44 | 44 |
45 class WebKitSourceBufferList FINAL : public RefCountedWillBeRefCountedGarbageCol
lected<WebKitSourceBufferList>, public ScriptWrappable, public EventTargetWithIn
lineData { | 45 class WebKitSourceBufferList FINAL : public RefCountedWillBeRefCountedGarbageCol
lected<WebKitSourceBufferList>, public ScriptWrappable, public EventTargetWithIn
lineData { |
46 DECLARE_GC_INFO; | |
47 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W
ebKitSourceBufferList>); | 46 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W
ebKitSourceBufferList>); |
48 public: | 47 public: |
49 static PassRefPtrWillBeRawPtr<WebKitSourceBufferList> create(ExecutionContex
t* context, GenericEventQueue* asyncEventQueue) | 48 static PassRefPtrWillBeRawPtr<WebKitSourceBufferList> create(ExecutionContex
t* context, GenericEventQueue* asyncEventQueue) |
50 { | 49 { |
51 return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitSourceB
ufferList(context, asyncEventQueue)); | 50 return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitSourceB
ufferList(context, asyncEventQueue)); |
52 } | 51 } |
53 virtual ~WebKitSourceBufferList() { } | 52 virtual ~WebKitSourceBufferList() { } |
54 | 53 |
55 unsigned long length() const; | 54 unsigned long length() const; |
56 WebKitSourceBuffer* item(unsigned index) const; | 55 WebKitSourceBuffer* item(unsigned index) const; |
(...skipping 15 matching lines...) Expand all Loading... |
72 | 71 |
73 ExecutionContext* m_executionContext; | 72 ExecutionContext* m_executionContext; |
74 GenericEventQueue* m_asyncEventQueue; | 73 GenericEventQueue* m_asyncEventQueue; |
75 | 74 |
76 WillBeHeapVector<RefPtrWillBeMember<WebKitSourceBuffer> > m_list; | 75 WillBeHeapVector<RefPtrWillBeMember<WebKitSourceBuffer> > m_list; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace WebCore | 78 } // namespace WebCore |
80 | 79 |
81 #endif | 80 #endif |
OLD | NEW |