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

Unified Diff: content/renderer/media/media_stream_source_extra_data.h

Issue 10919122: Move creation of PeerConnection from the RenderView to the RenderThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding missing files content/renderer/media/webrtc_uma_histograms.h Created 8 years, 3 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/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..3aa7b43ede9139a8772b5f26cc8efa64457897c2
--- /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_

Powered by Google App Engine
This is Rietveld 408576698