OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_ | |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "content/common/content_export.h" | |
10 #include "content/common/media/media_stream_options.h" | |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamSourc e.h" | |
12 | |
13 class CONTENT_EXPORT MediaStreamSourceExtraData | |
14 : NON_EXPORTED_BASE(public WebKit::WebMediaStreamSource::ExtraData) { | |
15 public: | |
16 explicit MediaStreamSourceExtraData( | |
17 const media_stream::StreamDeviceInfo& device_info) | |
18 : device_info_(device_info) { | |
19 } | |
20 | |
21 // Return device information about the camera or microphone. | |
22 const media_stream::StreamDeviceInfo& device_info() const { | |
23 return device_info_; | |
24 } | |
25 | |
26 private: | |
27 media_stream::StreamDeviceInfo device_info_; | |
tommi (sloooow) - chröme
2012/09/12 13:10:24
fix indent
perkj_chrome
2012/09/12 13:54:39
Done.
| |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(MediaStreamSourceExtraData); | |
30 }; | |
31 | |
32 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_EXTRA_DATA_H_ | |
OLD | NEW |