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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/message_loop/message_loop.h" |
17 #include "base/path_service.h" | 18 #include "base/path_service.h" |
18 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
19 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
20 #include "base/test/mock_callback.h" | 21 #include "base/test/mock_callback.h" |
21 #include "base/test/scoped_task_scheduler.h" | 22 #include "base/test/scoped_task_scheduler.h" |
22 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
23 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
24 #include "media/base/decrypt_config.h" | 25 #include "media/base/decrypt_config.h" |
25 #include "media/base/media_log.h" | 26 #include "media/base/media_log.h" |
26 #include "media/base/media_tracks.h" | 27 #include "media/base/media_tracks.h" |
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 // ensuring that status changes occur while an async read is pending. | 1654 // ensuring that status changes occur while an async read is pending. |
1654 audio_stream->FlushBuffers(); | 1655 audio_stream->FlushBuffers(); |
1655 audio_stream->Read(base::Bind(&media::OnReadDone_ExpectEos)); | 1656 audio_stream->Read(base::Bind(&media::OnReadDone_ExpectEos)); |
1656 CheckStreamStatusNotifications(demuxer_.get(), audio_stream); | 1657 CheckStreamStatusNotifications(demuxer_.get(), audio_stream); |
1657 video_stream->FlushBuffers(); | 1658 video_stream->FlushBuffers(); |
1658 video_stream->Read(base::Bind(&media::OnReadDone_ExpectEos)); | 1659 video_stream->Read(base::Bind(&media::OnReadDone_ExpectEos)); |
1659 CheckStreamStatusNotifications(demuxer_.get(), video_stream); | 1660 CheckStreamStatusNotifications(demuxer_.get(), video_stream); |
1660 } | 1661 } |
1661 | 1662 |
1662 } // namespace media | 1663 } // namespace media |
OLD | NEW |