Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / renderer / media / media_stream_source.cc
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/renderer/media/media_stream_source.h"
6
7 namespace content {
8
9 MediaStreamSource::MediaStreamSource() {
10 }
11
12 MediaStreamSource::~MediaStreamSource() {}
13
14 void MediaStreamSource::StopSource() {
15   DoStopSource();
16   if (!stop_callback_.is_null())
17     stop_callback_.Run(owner());
18
19   owner().setReadyState(blink::WebMediaStreamSource::ReadyStateEnded);
20   owner().setExtraData(NULL);
21 }
22
23 }  // namespace content