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

Unified Diff: content/renderer/media/media_stream_source.h

Issue 1834323002: MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_source.h
diff --git a/content/renderer/media/media_stream_source.h b/content/renderer/media/media_stream_source.h
index 940efcc30a337da6d9e3957943766fda3b594251..f81a68f9e7de646c1f1a3e448a3aabad6eaccd10 100644
--- a/content/renderer/media/media_stream_source.h
+++ b/content/renderer/media/media_stream_source.h
@@ -53,11 +53,6 @@ class CONTENT_EXPORT MediaStreamSource
stop_callback_.Reset();
}
- protected:
- // Called when StopSource is called. It allows derived classes to implement
- // its own Stop method.
- virtual void DoStopSource() = 0;
-
// Sets device information about a source that has been created by a
// JavaScript call to GetUserMedia. F.E a camera or microphone.
void SetDeviceInfo(const StreamDeviceInfo& device_info) {
@@ -70,6 +65,11 @@ class CONTENT_EXPORT MediaStreamSource
stop_callback_ = stop_callback;
}
+ protected:
+ // Called when StopSource is called. It allows derived classes to implement
+ // its own Stop method.
+ virtual void DoStopSource() = 0;
+
private:
StreamDeviceInfo device_info_;
SourceStoppedCallback stop_callback_;
o1ka 2016/03/30 15:00:58 Looks like we need to add thread checker to this c
miu 2016/03/31 04:57:59 Done.

Powered by Google App Engine
This is Rietveld 408576698