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

Unified Diff: content/public/renderer/media_stream_source_api.h

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/media_stream_source_api.h
diff --git a/content/public/renderer/media_stream_source_api.h b/content/public/renderer/media_stream_source_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..525dd9322d5eae9e6ab3ac7e41eadcd9ddcfa5f0
--- /dev/null
+++ b/content/public/renderer/media_stream_source_api.h
@@ -0,0 +1,36 @@
+// Copyright 2015 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.
+
+#ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SOURCE_API_H_
+#define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SOURCE_API_H_
+
+#include "content/common/content_export.h"
+#include "media/base/audio_capturer_source.h"
+#include "media/base/video_capturer_source.h"
+
+namespace blink {
+class WebMediaStreamSource;
+}
+
+namespace content {
+
+// These two methods will initialize a WebMediaStreamSource object to take
+// data from the provided audio or video capturer source.
+// |is_remote| should be true if the source of the data is not a local device.
+// |is_readonly| should be true if the format of the data cannot be changed by
+// constraints.
+CONTENT_EXPORT void InitializeWebMediaStreamSourceForVideo(
+ scoped_ptr<media::VideoCapturerSource> source,
+ blink::WebMediaStreamSource* webkit_source,
+ bool is_remote,
+ bool is_readonly);
+CONTENT_EXPORT void InitializeWebMediaStreamSourceForAudio(
+ scoped_refptr<media::AudioCapturerSource> source,
+ blink::WebMediaStreamSource* webkit_source,
+ bool is_remote,
+ bool is_readonly);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698