OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual ExecutionContext* executionContext() const OVERRIDE; | 85 virtual ExecutionContext* executionContext() const OVERRIDE; |
86 | 86 |
87 // ActiveDOMObject | 87 // ActiveDOMObject |
88 virtual void stop() OVERRIDE; | 88 virtual void stop() OVERRIDE; |
89 | 89 |
90 PassOwnPtr<AudioSourceProvider> createWebAudioSource(); | 90 PassOwnPtr<AudioSourceProvider> createWebAudioSource(); |
91 | 91 |
92 private: | 92 private: |
93 MediaStreamTrack(ExecutionContext*, MediaStreamComponent*); | 93 MediaStreamTrack(ExecutionContext*, MediaStreamComponent*); |
94 | 94 |
| 95 MediaStreamSource::ReadyState m_readyState; |
| 96 |
95 // MediaStreamSourceObserver | 97 // MediaStreamSourceObserver |
96 virtual void sourceChangedState() OVERRIDE; | 98 virtual void sourceChangedState() OVERRIDE; |
97 | 99 |
98 void propagateTrackEnded(); | 100 void propagateTrackEnded(); |
99 Vector<Observer*> m_observers; | 101 Vector<Observer*> m_observers; |
100 bool m_isIteratingObservers; | 102 bool m_isIteratingObservers; |
101 | 103 |
102 bool m_stopped; | 104 bool m_stopped; |
103 RefPtr<MediaStreamComponent> m_component; | 105 RefPtr<MediaStreamComponent> m_component; |
104 }; | 106 }; |
105 | 107 |
106 typedef Vector<RefPtr<MediaStreamTrack> > MediaStreamTrackVector; | 108 typedef Vector<RefPtr<MediaStreamTrack> > MediaStreamTrackVector; |
107 | 109 |
108 } // namespace WebCore | 110 } // namespace WebCore |
109 | 111 |
110 #endif // MediaStreamTrack_h | 112 #endif // MediaStreamTrack_h |
OLD | NEW |