OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "modules/mediarecorder/MediaRecorder.h" | 5 #include "modules/mediarecorder/MediaRecorder.h" |
6 | 6 |
| 7 #include <algorithm> |
| 8 #include <limits> |
7 #include "bindings/core/v8/Dictionary.h" | 9 #include "bindings/core/v8/Dictionary.h" |
8 #include "core/events/Event.h" | 10 #include "core/events/Event.h" |
9 #include "core/fileapi/Blob.h" | 11 #include "core/fileapi/Blob.h" |
10 #include "core/inspector/ConsoleMessage.h" | 12 #include "core/inspector/ConsoleMessage.h" |
11 #include "modules/EventTargetModules.h" | 13 #include "modules/EventTargetModules.h" |
12 #include "modules/mediarecorder/BlobEvent.h" | 14 #include "modules/mediarecorder/BlobEvent.h" |
13 #include "platform/blob/BlobData.h" | 15 #include "platform/blob/BlobData.h" |
14 #include "platform/network/mime/ContentType.h" | 16 #include "platform/network/mime/ContentType.h" |
15 #include "public/platform/Platform.h" | 17 #include "public/platform/Platform.h" |
16 #include "public/platform/WebMediaStream.h" | 18 #include "public/platform/WebMediaStream.h" |
17 #include "wtf/CurrentTime.h" | 19 #include "wtf/CurrentTime.h" |
18 #include "wtf/PtrUtil.h" | 20 #include "wtf/PtrUtil.h" |
19 #include <algorithm> | |
20 #include <limits> | |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char* kDefaultMimeType = "video/webm"; | 26 const char* kDefaultMimeType = "video/webm"; |
27 | 27 |
28 // Boundaries of Opus bitrate from https://www.opus-codec.org/. | 28 // Boundaries of Opus bitrate from https://www.opus-codec.org/. |
29 const int kSmallestPossibleOpusBitRate = 6000; | 29 const int kSmallestPossibleOpusBitRate = 6000; |
30 const int kLargestAutoAllocatedOpusBitRate = 128000; | 30 const int kLargestAutoAllocatedOpusBitRate = 128000; |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 DEFINE_TRACE(MediaRecorder) { | 396 DEFINE_TRACE(MediaRecorder) { |
397 visitor->trace(m_stream); | 397 visitor->trace(m_stream); |
398 visitor->trace(m_dispatchScheduledEventRunner); | 398 visitor->trace(m_dispatchScheduledEventRunner); |
399 visitor->trace(m_scheduledEvents); | 399 visitor->trace(m_scheduledEvents); |
400 EventTargetWithInlineData::trace(visitor); | 400 EventTargetWithInlineData::trace(visitor); |
401 SuspendableObject::trace(visitor); | 401 SuspendableObject::trace(visitor); |
402 } | 402 } |
403 | 403 |
404 } // namespace blink | 404 } // namespace blink |
OLD | NEW |