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

Side by Side Diff: Source/WebCore/Modules/mediastream/MediaStream.h

Issue 13776002: MediaStream should fire ended event when all tracks are ended (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: MediaStream should fire ended event when all tracks are ended Created 7 years, 8 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 MediaStreamDescriptor* descriptor() const { return m_descriptor.get(); } 73 MediaStreamDescriptor* descriptor() const { return m_descriptor.get(); }
74 74
75 // EventTarget 75 // EventTarget
76 virtual const AtomicString& interfaceName() const OVERRIDE; 76 virtual const AtomicString& interfaceName() const OVERRIDE;
77 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; 77 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE;
78 78
79 using RefCounted<MediaStream>::ref; 79 using RefCounted<MediaStream>::ref;
80 using RefCounted<MediaStream>::deref; 80 using RefCounted<MediaStream>::deref;
81 81
82 void trackEndedNotification();
abarth-chromium 2013/04/08 16:58:41 trackEndedNotification -> didEndTrack? Generally
83
82 protected: 84 protected:
83 MediaStream(ScriptExecutionContext*, PassRefPtr<MediaStreamDescriptor>); 85 MediaStream(ScriptExecutionContext*, PassRefPtr<MediaStreamDescriptor>);
84 86
85 // EventTarget 87 // EventTarget
86 virtual EventTargetData* eventTargetData() OVERRIDE; 88 virtual EventTargetData* eventTargetData() OVERRIDE;
87 virtual EventTargetData* ensureEventTargetData() OVERRIDE; 89 virtual EventTargetData* ensureEventTargetData() OVERRIDE;
88 90
89 // ContextDestructionObserver 91 // ContextDestructionObserver
90 virtual void contextDestroyed(); 92 virtual void contextDestroyed();
91 93
(...skipping 21 matching lines...) Expand all
113 Vector<RefPtr<Event> > m_scheduledEvents; 115 Vector<RefPtr<Event> > m_scheduledEvents;
114 }; 116 };
115 117
116 typedef Vector<RefPtr<MediaStream> > MediaStreamVector; 118 typedef Vector<RefPtr<MediaStream> > MediaStreamVector;
117 119
118 } // namespace WebCore 120 } // namespace WebCore
119 121
120 #endif // ENABLE(MEDIA_STREAM) 122 #endif // ENABLE(MEDIA_STREAM)
121 123
122 #endif // MediaStream_h 124 #endif // MediaStream_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698