// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/media/media_stream_source.h"
#include "base/callback_helpers.h"
namespace content {
const char MediaStreamSource::kSourceId[] = "sourceId";
MediaStreamSource::MediaStreamSource() {
}
MediaStreamSource::~MediaStreamSource() {}
void MediaStreamSource::StopSource() {
DoStopSource();
if (!stop_callback_.is_null())
base::ResetAndReturn(&stop_callback_).Run(owner());
owner().setReadyState(blink::WebMediaStreamSource::ReadyStateEnded);
}
} // namespace content