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

Side by Side Diff: content/renderer/media/media_stream_source.cc

Issue 131763002: Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_source.h ('k') | content/renderer/media/media_stream_source_extra_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698