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

Side by Side Diff: Source/modules/mediastream/MediaStreamTrack.h

Issue 219453002: MediaStreamTrack now has it's own readyState. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/modules/mediastream/MediaStreamTrack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | Source/modules/mediastream/MediaStreamTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698