| OLD | NEW |
| 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_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 struct CONTENT_EXPORT MediaStreamDevice { | 88 struct CONTENT_EXPORT MediaStreamDevice { |
| 89 MediaStreamDevice(); | 89 MediaStreamDevice(); |
| 90 | 90 |
| 91 MediaStreamDevice(MediaStreamType type, | 91 MediaStreamDevice(MediaStreamType type, |
| 92 const std::string& id, | 92 const std::string& id, |
| 93 const std::string& name); | 93 const std::string& name); |
| 94 | 94 |
| 95 MediaStreamDevice(MediaStreamType type, | 95 MediaStreamDevice(MediaStreamType type, |
| 96 const std::string& id, | 96 const std::string& id, |
| 97 const std::string& name, | 97 const std::string& name, |
| 98 VideoFacingMode facing); |
| 99 |
| 100 MediaStreamDevice(MediaStreamType type, |
| 101 const std::string& id, |
| 102 const std::string& name, |
| 98 int sample_rate, | 103 int sample_rate, |
| 99 int channel_layout, | 104 int channel_layout, |
| 100 int frames_per_buffer); | 105 int frames_per_buffer); |
| 101 | 106 |
| 102 MediaStreamDevice(const MediaStreamDevice& other); | 107 MediaStreamDevice(const MediaStreamDevice& other); |
| 103 | 108 |
| 104 ~MediaStreamDevice(); | 109 ~MediaStreamDevice(); |
| 105 | 110 |
| 106 bool IsEqual(const MediaStreamDevice& second) const; | 111 bool IsEqual(const MediaStreamDevice& second) const; |
| 107 | 112 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 267 |
| 263 // Callback used return results of media access requests. | 268 // Callback used return results of media access requests. |
| 264 typedef base::Callback<void(const MediaStreamDevices& devices, | 269 typedef base::Callback<void(const MediaStreamDevices& devices, |
| 265 content::MediaStreamRequestResult result, | 270 content::MediaStreamRequestResult result, |
| 266 std::unique_ptr<MediaStreamUI> ui)> | 271 std::unique_ptr<MediaStreamUI> ui)> |
| 267 MediaResponseCallback; | 272 MediaResponseCallback; |
| 268 | 273 |
| 269 } // namespace content | 274 } // namespace content |
| 270 | 275 |
| 271 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 276 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| OLD | NEW |