summaryrefslogtreecommitdiffstats
path: root/content/renderer/media/media_stream_source.cc
blob: 271c7ba4059a3c598385cffdbcbb1775308a2d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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);
}

}  // namespace content