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

Side by Side Diff: content/public/renderer/media_stream_utils.h

Issue 1773273007: Cleanup: media_stream_api.* ==> media_stream_utils.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +headers in blink_test_runner.cc 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_ 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
7 7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
8 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
9 #include "media/base/audio_capturer_source.h"
10 #include "media/base/channel_layout.h" 11 #include "media/base/channel_layout.h"
11 #include "media/base/video_capture_types.h" 12 #include "media/base/video_capture_types.h"
12 #include "media/base/video_capturer_source.h"
13 13
14 namespace blink { 14 namespace blink {
15 class WebMediaStream; 15 class WebMediaStream;
16 class WebMediaStreamTrack; 16 class WebMediaStreamTrack;
17 } 17 }
18 18
19 namespace media {
20 class AudioCapturerSource;
21 class VideoCapturerSource;
22 }
23
19 namespace content { 24 namespace content {
20 // These methods create a WebMediaStreamSource + MediaStreamSource pair with the 25 // These methods create a WebMediaStreamSource + MediaStreamSource pair with the
21 // provided audio or video capturer source. A new WebMediaStreamTrack + 26 // provided audio or video capturer source. A new WebMediaStreamTrack +
22 // MediaStreamTrack pair is created, connected to the source and is plugged into 27 // MediaStreamTrack pair is created, connected to the source and is plugged into
23 // the WebMediaStream (|web_media_stream|). 28 // the WebMediaStream (|web_media_stream|).
24 // |is_remote| should be true if the source of the data is not a local device. 29 // |is_remote| should be true if the source of the data is not a local device.
25 // |is_readonly| should be true if the format of the data cannot be changed by 30 // |is_readonly| should be true if the format of the data cannot be changed by
26 // MediaTrackConstraints. 31 // MediaTrackConstraints.
27 CONTENT_EXPORT bool AddVideoTrackToMediaStream( 32 CONTENT_EXPORT bool AddVideoTrackToMediaStream(
28 scoped_ptr<media::VideoCapturerSource> video_source, 33 scoped_ptr<media::VideoCapturerSource> video_source,
(...skipping 15 matching lines...) Expand all
44 blink::WebMediaStream* web_media_stream); 49 blink::WebMediaStream* web_media_stream);
45 50
46 // On success returns pointer to the current format of the given video track; 51 // On success returns pointer to the current format of the given video track;
47 // returns nullptr on failure (if the argument is invalid or if the format 52 // returns nullptr on failure (if the argument is invalid or if the format
48 // cannot be retrieved at the moment). 53 // cannot be retrieved at the moment).
49 CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat( 54 CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat(
50 const blink::WebMediaStreamTrack& video_track); 55 const blink::WebMediaStreamTrack& video_track);
51 56
52 } // namespace content 57 } // namespace content
53 58
54 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_API_H_ 59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_UTILS_H_
OLDNEW
« no previous file with comments | « content/public/renderer/media_stream_api.cc ('k') | content/public/renderer/media_stream_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698