| 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 29 matching lines...) Expand all Loading... |
| 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 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W
ebKitSourceBufferList>); | 46 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W
ebKitSourceBufferList>); |
| 47 public: | 47 public: |
| 48 static PassRefPtrWillBeRawPtr<WebKitSourceBufferList> create(ExecutionContex
t* context, GenericEventQueue* asyncEventQueue) | 48 static PassRefPtrWillBeRawPtr<WebKitSourceBufferList> create(ExecutionContex
t* context, GenericEventQueue* asyncEventQueue) |
| 49 { | 49 { |
| 50 return adoptRefCountedWillBeRefCountedGarbageCollected(new WebKitSourceB
ufferList(context, asyncEventQueue)); | 50 return adoptRefWillBeRefCountedGarbageCollected(new WebKitSourceBufferLi
st(context, asyncEventQueue)); |
| 51 } | 51 } |
| 52 virtual ~WebKitSourceBufferList() { } | 52 virtual ~WebKitSourceBufferList() { } |
| 53 | 53 |
| 54 unsigned long length() const; | 54 unsigned long length() const; |
| 55 WebKitSourceBuffer* item(unsigned index) const; | 55 WebKitSourceBuffer* item(unsigned index) const; |
| 56 | 56 |
| 57 void add(PassRefPtrWillBeRawPtr<WebKitSourceBuffer>); | 57 void add(PassRefPtrWillBeRawPtr<WebKitSourceBuffer>); |
| 58 bool remove(WebKitSourceBuffer*); | 58 bool remove(WebKitSourceBuffer*); |
| 59 void clear(); | 59 void clear(); |
| 60 | 60 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 ExecutionContext* m_executionContext; | 72 ExecutionContext* m_executionContext; |
| 73 GenericEventQueue* m_asyncEventQueue; | 73 GenericEventQueue* m_asyncEventQueue; |
| 74 | 74 |
| 75 WillBeHeapVector<RefPtrWillBeMember<WebKitSourceBuffer> > m_list; | 75 WillBeHeapVector<RefPtrWillBeMember<WebKitSourceBuffer> > m_list; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace WebCore | 78 } // namespace WebCore |
| 79 | 79 |
| 80 #endif | 80 #endif |
| OLD | NEW |