| Index: content/renderer/media/media_stream_source_extra_data.h
|
| diff --git a/content/renderer/media/media_stream_source_extra_data.h b/content/renderer/media/media_stream_source_extra_data.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a7378179cddad98a47faba060ffdf39e85626ef4
|
| --- /dev/null
|
| +++ b/content/renderer/media/media_stream_source_extra_data.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 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_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_
|
| +#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "content/common/content_export.h"
|
| +#include "content/common/media/media_stream_options.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamSource.h"
|
| +
|
| +class CONTENT_EXPORT MediaStreamSourceExtraData
|
| + : NON_EXPORTED_BASE(public WebKit::WebMediaStreamSource::ExtraData) {
|
| + public:
|
| + explicit MediaStreamSourceExtraData(
|
| + const media_stream::StreamDeviceInfo& device_info)
|
| + : device_info_(device_info) {
|
| + }
|
| +
|
| + // Return device information about the camera or microphone.
|
| + const media_stream::StreamDeviceInfo& device_info() const {
|
| + return device_info_;
|
| + }
|
| +
|
| + private:
|
| + media_stream::StreamDeviceInfo device_info_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MediaStreamSourceExtraData);
|
| +};
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_
|
|
|