summaryrefslogtreecommitdiffstats
path: root/content/common/media/media_stream_options.cc
diff options
context:
space:
mode:
authormflodman@google.com <mflodman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 17:48:22 +0000
committermflodman@google.com <mflodman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 17:48:22 +0000
commitb0bbd2d788714dffa7fa0f960c7d8ee002b2727b (patch)
treef9115f3ddea125515612cd122d3128dfa899c6df /content/common/media/media_stream_options.cc
parent05b0dcc11dc54242090e484b1e8ef04386b834df (diff)
downloadchromium_src-b0bbd2d788714dffa7fa0f960c7d8ee002b2727b.zip
chromium_src-b0bbd2d788714dffa7fa0f960c7d8ee002b2727b.tar.gz
chromium_src-b0bbd2d788714dffa7fa0f960c7d8ee002b2727b.tar.bz2
Adding error signalling from device to VideocaptureManager to relay up to MediaStream and WebKit.
Moving struct out of media_stream_provider.h to media_stream_options.h. The struct will later be used in MediaStream IPC and MediaStreamManager. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/7192007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/media/media_stream_options.cc')
-rw-r--r--content/common/media/media_stream_options.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/content/common/media/media_stream_options.cc b/content/common/media/media_stream_options.cc
new file mode 100644
index 0000000..f4f38dc
--- /dev/null
+++ b/content/common/media/media_stream_options.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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.
+
+#include "content/common/media/media_stream_options.h"
+
+namespace media_stream {
+
+StreamDeviceInfo::StreamDeviceInfo()
+ : stream_type(kNoService),
+ in_use(false),
+ session_id(kNoId) {}
+
+StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param,
+ const std::string& name_param,
+ const std::string& device_param,
+ bool opened)
+ : stream_type(service_param),
+ name(name_param),
+ device_id(device_param),
+ in_use(opened),
+ session_id(kNoId) {}
+
+} // namespace media_stream