| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef MediaConstraintsImpl_h | 31 #ifndef MediaConstraintsImpl_h |
| 32 #define MediaConstraintsImpl_h | 32 #define MediaConstraintsImpl_h |
| 33 | 33 |
| 34 #include "modules/ModulesExport.h" | 34 #include "modules/ModulesExport.h" |
| 35 #include "modules/mediastream/MediaErrorState.h" | 35 #include "modules/mediastream/MediaErrorState.h" |
| 36 #include "platform/wtf/text/WTFString.h" |
| 36 #include "public/platform/WebMediaConstraints.h" | 37 #include "public/platform/WebMediaConstraints.h" |
| 37 #include "wtf/text/WTFString.h" | |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class Dictionary; | 41 class Dictionary; |
| 42 class MediaTrackConstraints; | 42 class MediaTrackConstraints; |
| 43 | 43 |
| 44 namespace MediaConstraintsImpl { | 44 namespace MediaConstraintsImpl { |
| 45 | 45 |
| 46 WebMediaConstraints Create(); | 46 WebMediaConstraints Create(); |
| 47 WebMediaConstraints Create(ExecutionContext*, | 47 WebMediaConstraints Create(ExecutionContext*, |
| 48 const Dictionary&, | 48 const Dictionary&, |
| 49 MediaErrorState&); | 49 MediaErrorState&); |
| 50 WebMediaConstraints Create(ExecutionContext*, | 50 WebMediaConstraints Create(ExecutionContext*, |
| 51 const MediaTrackConstraints&, | 51 const MediaTrackConstraints&, |
| 52 MediaErrorState&); | 52 MediaErrorState&); |
| 53 | 53 |
| 54 // Exported with MODULES_EXPORT for testing | 54 // Exported with MODULES_EXPORT for testing |
| 55 MODULES_EXPORT void ConvertConstraints(const WebMediaConstraints& input, | 55 MODULES_EXPORT void ConvertConstraints(const WebMediaConstraints& input, |
| 56 MediaTrackConstraints& output); | 56 MediaTrackConstraints& output); |
| 57 // Exported for testing only. | 57 // Exported for testing only. |
| 58 MODULES_EXPORT WebMediaConstraints | 58 MODULES_EXPORT WebMediaConstraints |
| 59 ConvertConstraintsToWeb(const MediaTrackConstraints&); | 59 ConvertConstraintsToWeb(const MediaTrackConstraints&); |
| 60 } | 60 } |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // MediaConstraintsImpl_h | 64 #endif // MediaConstraintsImpl_h |
| OLD | NEW |