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 MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ | 5 #ifndef MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ |
6 #define MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ | 6 #define MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 | 11 |
11 namespace base { | 12 namespace base { |
12 class SingleThreadTaskRunner; | 13 class SingleThreadTaskRunner; |
13 class WaitableEvent; | 14 class WaitableEvent; |
14 } | 15 } |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
(...skipping 25 matching lines...) Expand all Loading... |
43 // A pointer to the task runner. In case it gets destroyed before this object | 44 // A pointer to the task runner. In case it gets destroyed before this object |
44 // goes out of scope, PostTask() etc will fail but not crash. | 45 // goes out of scope, PostTask() etc will fail but not crash. |
45 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 46 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(ScopedTaskRunnerObserver); | 48 DISALLOW_COPY_AND_ASSIGN(ScopedTaskRunnerObserver); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace media. | 51 } // namespace media. |
51 | 52 |
52 #endif // MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ | 53 #endif // MEDIA_AUDIO_SCOPED_TASK_RUNNER_OBSERVER_H_ |
OLD | NEW |