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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp

Issue 1362933003: Remove MediaStream label, ended attributes and stop() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
index b36b5253b9e2b5e039552014b1c3fe2db63a6125..e9da453920eb730d403cf9ce11ebec0266b23166 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
@@ -173,11 +173,6 @@ bool MediaStream::emptyOrOnlyEndedTracks()
return true;
}
-bool MediaStream::ended() const
-{
- return m_stopped || m_descriptor->ended();
-}
-
MediaStreamTrackVector MediaStream::getTracks()
{
MediaStreamTrackVector tracks;
@@ -276,16 +271,6 @@ MediaStream* MediaStream::clone(ExecutionContext* context)
return MediaStream::create(context, tracks);
}
-void MediaStream::stop()
-{
- if (ended())
- return;
-
- streamEnded();
-
- MediaStreamCenter::instance().didStopLocalMediaStream(descriptor());
-}
-
void MediaStream::trackEnded()
{
for (MediaStreamTrackVector::iterator iter = m_audioTracks.begin(); iter != m_audioTracks.end(); ++iter) {
@@ -303,7 +288,7 @@ void MediaStream::trackEnded()
void MediaStream::streamEnded()
{
- if (ended())
+ if (m_stopped || m_descriptor->ended())
return;
if (active()) {
@@ -333,7 +318,7 @@ ExecutionContext* MediaStream::executionContext() const
void MediaStream::addRemoteTrack(MediaStreamComponent* component)
{
ASSERT(component);
- if (ended())
+ if (m_stopped || m_descriptor->ended())
return;
MediaStreamTrack* track = MediaStreamTrack::create(executionContext(), component);

Powered by Google App Engine
This is Rietveld 408576698