| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 DEFINE_SELF_HANDLE(SourceBufferList) | 46 DEFINE_SELF_HANDLE(SourceBufferList) |
| 47 public: | 47 public: |
| 48 static PassRefPtr<SourceBufferList> create(ScriptExecutionContext* context,
GenericEventQueue* asyncEventQueue) | 48 static PassRefPtr<SourceBufferList> create(ScriptExecutionContext* context,
GenericEventQueue* asyncEventQueue) |
| 49 { | 49 { |
| 50 return adoptRef(new SourceBufferList(context, asyncEventQueue)); | 50 return adoptRef(new SourceBufferList(context, asyncEventQueue)); |
| 51 } | 51 } |
| 52 virtual ~SourceBufferList() { } | 52 virtual ~SourceBufferList() { } |
| 53 | 53 |
| 54 virtual void trace(Visitor*) { } | 54 virtual void trace(Visitor*) { } |
| 55 | 55 |
| 56 virtual void visitWith(Visitor* visitor) const OVERRIDE | 56 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 57 { | 57 { |
| 58 visitor->visit(this); | 58 visitor->mark(this); |
| 59 } | 59 } |
| 60 | 60 |
| 61 unsigned long length() const; | 61 unsigned long length() const; |
| 62 SourceBuffer* item(unsigned index) const; | 62 SourceBuffer* item(unsigned index) const; |
| 63 | 63 |
| 64 void add(PassRefPtr<SourceBuffer>); | 64 void add(PassRefPtr<SourceBuffer>); |
| 65 bool remove(SourceBuffer*); | 65 bool remove(SourceBuffer*); |
| 66 void clear(); | 66 void clear(); |
| 67 | 67 |
| 68 // EventTarget interface | 68 // EventTarget interface |
| (...skipping 16 matching lines...) Expand all Loading... |
| 85 // FIXME(oilpan): This is a back pointer. | 85 // FIXME(oilpan): This is a back pointer. |
| 86 ScriptExecutionContext* m_scriptExecutionContext; | 86 ScriptExecutionContext* m_scriptExecutionContext; |
| 87 GenericEventQueue* m_asyncEventQueue; | 87 GenericEventQueue* m_asyncEventQueue; |
| 88 | 88 |
| 89 Vector<RefPtr<SourceBuffer> > m_list; | 89 Vector<RefPtr<SourceBuffer> > m_list; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif | 94 #endif |
| OLD | NEW |