| Index: content/renderer/media/media_stream_source.cc
|
| diff --git a/content/renderer/media/media_stream_source.cc b/content/renderer/media/media_stream_source.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..67a5b9fea9096b90340ad60cc4d89901479b3ee8
|
| --- /dev/null
|
| +++ b/content/renderer/media/media_stream_source.cc
|
| @@ -0,0 +1,23 @@
|
| +// 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"
|
| +
|
| +namespace content {
|
| +
|
| +MediaStreamSource::MediaStreamSource() {
|
| +}
|
| +
|
| +MediaStreamSource::~MediaStreamSource() {}
|
| +
|
| +void MediaStreamSource::StopSource() {
|
| + DoStopSource();
|
| + if (!stop_callback_.is_null())
|
| + stop_callback_.Run(owner());
|
| +
|
| + owner().setReadyState(blink::WebMediaStreamSource::ReadyStateEnded);
|
| + owner().setExtraData(NULL);
|
| +}
|
| +
|
| +} // namespace content
|
|
|