Chromium Code Reviews| Index: content/public/renderer/media_stream_track_api.h |
| diff --git a/content/public/renderer/media_stream_track_api.h b/content/public/renderer/media_stream_track_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..53635aea40a86d5c4b0c35b0db3b5b76436dcdf3 |
| --- /dev/null |
| +++ b/content/public/renderer/media_stream_track_api.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2016 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_TRACK_API_H_ |
| +#define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_TRACK_API_H_ |
| + |
| +#include "content/common/content_export.h" |
| +#include "media/base/video_capture_types.h" |
| + |
| +namespace blink { |
| +class WebMediaStreamTrack; |
| +} |
| + |
| +namespace content { |
| + |
| +// On success returns pointer to the current format of the given video track; |
| +// returns nullptr on failure (if the argument is invalid or if the format |
| +// cannot be retrieved at the moment). |
| +CONTENT_EXPORT const media::VideoCaptureFormat* GetCurrentVideoTrackFormat( |
|
miu
2016/03/12 01:23:14
Maybe this function should go in content/public/re
|
| + const blink::WebMediaStreamTrack& video_track); |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_TRACK_API_H_ |