Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // ContextLifecycleObserver 96 // ContextLifecycleObserver
97 void contextDestroyed() override; 97 void contextDestroyed() override;
98 98
99 // MediaStreamDescriptorClient 99 // MediaStreamDescriptorClient
100 void addRemoteTrack(MediaStreamComponent*) override; 100 void addRemoteTrack(MediaStreamComponent*) override;
101 void removeRemoteTrack(MediaStreamComponent*) override; 101 void removeRemoteTrack(MediaStreamComponent*) override;
102 102
103 bool emptyOrOnlyEndedTracks(); 103 bool emptyOrOnlyEndedTracks();
104 104
105 void scheduleDispatchEvent(Event*); 105 void scheduleDispatchEvent(Event*);
106 void scheduledEventTimerFired(Timer<MediaStream>*); 106 void scheduledEventTimerFired(TimerBase*);
107 107
108 bool m_stopped; 108 bool m_stopped;
109 109
110 MediaStreamTrackVector m_audioTracks; 110 MediaStreamTrackVector m_audioTracks;
111 MediaStreamTrackVector m_videoTracks; 111 MediaStreamTrackVector m_videoTracks;
112 Member<MediaStreamDescriptor> m_descriptor; 112 Member<MediaStreamDescriptor> m_descriptor;
113 113
114 Timer<MediaStream> m_scheduledEventTimer; 114 Timer<MediaStream> m_scheduledEventTimer;
115 HeapVector<Member<Event>> m_scheduledEvents; 115 HeapVector<Member<Event>> m_scheduledEvents;
116 }; 116 };
117 117
118 typedef HeapVector<Member<MediaStream>> MediaStreamVector; 118 typedef HeapVector<Member<MediaStream>> MediaStreamVector;
119 119
120 MediaStream* toMediaStream(MediaStreamDescriptor*); 120 MediaStream* toMediaStream(MediaStreamDescriptor*);
121 121
122 } // namespace blink 122 } // namespace blink
123 123
124 #endif // MediaStream_h 124 #endif // MediaStream_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698