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

Side by Side Diff: media/cast/test/receiver.cc

Issue 2592143003: Allow ObserverListThreadSafe to be used from sequenced tasks. (Closed)
Patch Set: rebase Created 3 years, 11 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <limits.h> 5 #include <limits.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <climits> 10 #include <climits>
11 #include <cstdarg> 11 #include <cstdarg>
12 #include <cstdio> 12 #include <cstdio>
13 #include <deque> 13 #include <deque>
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <utility> 17 #include <utility>
18 18
19 #include "base/at_exit.h" 19 #include "base/at_exit.h"
20 #include "base/command_line.h" 20 #include "base/command_line.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
23 #include "base/message_loop/message_loop.h" 23 #include "base/message_loop/message_loop.h"
24 #include "base/run_loop.h" 24 #include "base/run_loop.h"
25 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
26 #include "base/synchronization/waitable_event.h" 26 #include "base/synchronization/waitable_event.h"
27 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
28 #include "base/threading/thread_task_runner_handle.h"
28 #include "base/time/default_tick_clock.h" 29 #include "base/time/default_tick_clock.h"
29 #include "base/time/time.h" 30 #include "base/time/time.h"
30 #include "base/timer/timer.h" 31 #include "base/timer/timer.h"
31 #include "media/audio/audio_io.h" 32 #include "media/audio/audio_io.h"
32 #include "media/audio/audio_manager.h" 33 #include "media/audio/audio_manager.h"
33 #include "media/audio/fake_audio_log_factory.h" 34 #include "media/audio/fake_audio_log_factory.h"
34 #include "media/base/audio_bus.h" 35 #include "media/base/audio_bus.h"
35 #include "media/base/audio_parameters.h" 36 #include "media/base/audio_parameters.h"
36 #include "media/base/channel_layout.h" 37 #include "media/base/channel_layout.h"
37 #include "media/base/video_frame.h" 38 #include "media/base/video_frame.h"
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 audio_config, 606 audio_config,
606 video_config, 607 video_config,
607 window_width, 608 window_width,
608 window_height); 609 window_height);
609 player.Start(); 610 player.Start();
610 611
611 base::RunLoop().Run(); // Run forever (i.e., until SIGTERM). 612 base::RunLoop().Run(); // Run forever (i.e., until SIGTERM).
612 NOTREACHED(); 613 NOTREACHED();
613 return 0; 614 return 0;
614 } 615 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698