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 public: | 46 public: |
47 static const String& openKeyword(); | 47 static const String& openKeyword(); |
48 static const String& closedKeyword(); | 48 static const String& closedKeyword(); |
49 static const String& endedKeyword(); | 49 static const String& endedKeyword(); |
50 | 50 |
51 static PassRefPtr<MediaSource> create(ScriptExecutionContext*); | 51 static PassRefPtr<MediaSource> create(ScriptExecutionContext*); |
52 virtual ~MediaSource() { } | 52 virtual ~MediaSource() { } |
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 // MediaSource.idl methods | 61 // MediaSource.idl methods |
62 SourceBufferList* sourceBuffers(); | 62 SourceBufferList* sourceBuffers(); |
63 SourceBufferList* activeSourceBuffers(); | 63 SourceBufferList* activeSourceBuffers(); |
64 double duration() const; | 64 double duration() const; |
65 void setDuration(double, ExceptionCode&); | 65 void setDuration(double, ExceptionCode&); |
66 SourceBuffer* addSourceBuffer(const String& type, ExceptionCode&); | 66 SourceBuffer* addSourceBuffer(const String& type, ExceptionCode&); |
67 void removeSourceBuffer(SourceBuffer*, ExceptionCode&); | 67 void removeSourceBuffer(SourceBuffer*, ExceptionCode&); |
68 const String& readyState() const; | 68 const String& readyState() const; |
(...skipping 28 matching lines...) Expand all Loading... |
97 OwnPtr<MediaSourcePrivate> m_private; | 97 OwnPtr<MediaSourcePrivate> m_private; |
98 | 98 |
99 RefPtr<SourceBufferList> m_sourceBuffers; | 99 RefPtr<SourceBufferList> m_sourceBuffers; |
100 RefPtr<SourceBufferList> m_activeSourceBuffers; | 100 RefPtr<SourceBufferList> m_activeSourceBuffers; |
101 OwnPtr<GenericEventQueue> m_asyncEventQueue; | 101 OwnPtr<GenericEventQueue> m_asyncEventQueue; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace WebCore | 104 } // namespace WebCore |
105 | 105 |
106 #endif | 106 #endif |
OLD | NEW |