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

Side by Side Diff: content/common/media/media_stream_options.h

Issue 11339014: Move content\browser\renderer_host\media to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 6 #define CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/media_stream_request.h" 13 #include "content/public/common/media_stream_request.h"
14 14
15 namespace media_stream { 15 namespace content {
16 16
17 // MediaStreamConstraint keys for constraints that are passed to getUserMedia. 17 // MediaStreamConstraint keys for constraints that are passed to getUserMedia.
18 CONTENT_EXPORT extern const char kMediaStreamSource[]; 18 CONTENT_EXPORT extern const char kMediaStreamSource[];
19 CONTENT_EXPORT extern const char kMediaStreamSourceId[]; 19 CONTENT_EXPORT extern const char kMediaStreamSourceId[];
20 CONTENT_EXPORT extern const char kMediaStreamSourceTab[]; 20 CONTENT_EXPORT extern const char kMediaStreamSourceTab[];
21 21
22 typedef content::MediaStreamDeviceType MediaStreamType; 22 typedef MediaStreamDeviceType MediaStreamType;
23 23
24 // Callback to deliver the result of a media request. |label| is the string 24 // Callback to deliver the result of a media request. |label| is the string
25 // to identify the request, 25 // to identify the request,
26 typedef base::Callback< void(const std::string&, 26 typedef base::Callback< void(const std::string&, const MediaStreamDevices&) >
27 const content::MediaStreamDevices&) >
28 MediaRequestResponseCallback; 27 MediaRequestResponseCallback;
29 28
30 // StreamOptions is a Chromium representation of WebKit's 29 // StreamOptions is a Chromium representation of WebKit's
31 // WebUserMediaRequest Options. It describes the components 30 // WebUserMediaRequest Options. It describes the components
32 // in a request for a new media stream. 31 // in a request for a new media stream.
33 struct CONTENT_EXPORT StreamOptions { 32 struct CONTENT_EXPORT StreamOptions {
34 StreamOptions(); 33 StreamOptions();
35 StreamOptions(MediaStreamType audio_type, MediaStreamType video_type); 34 StreamOptions(MediaStreamType audio_type, MediaStreamType video_type);
36 35
37 // If not NO_SERVICE, the stream shall contain an audio input stream. 36 // If not NO_SERVICE, the stream shall contain an audio input stream.
(...skipping 25 matching lines...) Expand all
63 // friendly name connected to the computer, this will be unique. 62 // friendly name connected to the computer, this will be unique.
64 std::string device_id; 63 std::string device_id;
65 // Set to true if the device has been opened, false otherwise. 64 // Set to true if the device has been opened, false otherwise.
66 bool in_use; 65 bool in_use;
67 // Id for this capture session. Unique for all sessions of the same type. 66 // Id for this capture session. Unique for all sessions of the same type.
68 int session_id; 67 int session_id;
69 }; 68 };
70 69
71 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray; 70 typedef std::vector<StreamDeviceInfo> StreamDeviceInfoArray;
72 71
73 } // namespace media_stream 72 } // namespace content
74 73
75 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_ 74 #endif // CONTENT_COMMON_MEDIA_MEDIA_STREAM_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698