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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 MediaStream(ExecutionContext*, PassRefPtr<MediaStreamDescriptor>); | 92 MediaStream(ExecutionContext*, PassRefPtr<MediaStreamDescriptor>); |
93 MediaStream(ExecutionContext*, const MediaStreamTrackVector& audioTracks, co
nst MediaStreamTrackVector& videoTracks); | 93 MediaStream(ExecutionContext*, const MediaStreamTrackVector& audioTracks, co
nst MediaStreamTrackVector& videoTracks); |
94 | 94 |
95 // ContextLifecycleObserver | 95 // ContextLifecycleObserver |
96 virtual void contextDestroyed() override; | 96 virtual void contextDestroyed() override; |
97 | 97 |
98 // MediaStreamDescriptorClient | 98 // MediaStreamDescriptorClient |
99 virtual void addRemoteTrack(MediaStreamComponent*) override; | 99 virtual void addRemoteTrack(MediaStreamComponent*) override; |
100 virtual void removeRemoteTrack(MediaStreamComponent*) override; | 100 virtual void removeRemoteTrack(MediaStreamComponent*) override; |
101 | 101 |
| 102 bool emptyOrOnlyEndedTracks(); |
| 103 |
102 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); | 104 void scheduleDispatchEvent(PassRefPtrWillBeRawPtr<Event>); |
103 void scheduledEventTimerFired(Timer<MediaStream>*); | 105 void scheduledEventTimerFired(Timer<MediaStream>*); |
104 | 106 |
105 bool m_stopped; | 107 bool m_stopped; |
106 | 108 |
107 MediaStreamTrackVector m_audioTracks; | 109 MediaStreamTrackVector m_audioTracks; |
108 MediaStreamTrackVector m_videoTracks; | 110 MediaStreamTrackVector m_videoTracks; |
109 RefPtr<MediaStreamDescriptor> m_descriptor; | 111 RefPtr<MediaStreamDescriptor> m_descriptor; |
110 | 112 |
111 Timer<MediaStream> m_scheduledEventTimer; | 113 Timer<MediaStream> m_scheduledEventTimer; |
112 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 114 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
113 }; | 115 }; |
114 | 116 |
115 typedef HeapVector<Member<MediaStream> > MediaStreamVector; | 117 typedef HeapVector<Member<MediaStream> > MediaStreamVector; |
116 | 118 |
117 } // namespace blink | 119 } // namespace blink |
118 | 120 |
119 #endif // MediaStream_h | 121 #endif // MediaStream_h |
OLD | NEW |