OLD | NEW |
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 #ifndef MEDIA_CAST_CAST_THREAD_H_ | 5 #ifndef MEDIA_CAST_CAST_THREAD_H_ |
6 #define MEDIA_CAST_CAST_THREAD_H_ | 6 #define MEDIA_CAST_CAST_THREAD_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 const tracked_objects::Location& from_here, | 47 const tracked_objects::Location& from_here, |
48 const base::Closure& task); | 48 const base::Closure& task); |
49 | 49 |
50 bool PostDelayedTask(ThreadId identifier, | 50 bool PostDelayedTask(ThreadId identifier, |
51 const tracked_objects::Location& from_here, | 51 const tracked_objects::Location& from_here, |
52 const base::Closure& task, | 52 const base::Closure& task, |
53 base::TimeDelta delay); | 53 base::TimeDelta delay); |
54 | 54 |
55 bool CurrentlyOn(ThreadId identifier); | 55 bool CurrentlyOn(ThreadId identifier); |
56 | 56 |
57 protected: | |
58 virtual ~CastThread(); | |
59 | |
60 private: | 57 private: |
61 friend class base::RefCountedThreadSafe<CastThread>; | |
62 | |
63 scoped_refptr<base::TaskRunner> GetMessageTaskRunnerForThread( | 58 scoped_refptr<base::TaskRunner> GetMessageTaskRunnerForThread( |
64 ThreadId identifier); | 59 ThreadId identifier); |
65 | 60 |
66 scoped_refptr<base::TaskRunner> main_thread_proxy_; | 61 scoped_refptr<base::TaskRunner> main_thread_proxy_; |
67 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy_; | 62 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy_; |
68 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy_; | 63 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy_; |
69 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_; | 64 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_; |
70 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_; | 65 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_; |
71 | 66 |
72 DISALLOW_COPY_AND_ASSIGN(CastThread); | 67 DISALLOW_COPY_AND_ASSIGN(CastThread); |
73 }; | 68 }; |
74 | 69 |
75 } // namespace cast | 70 } // namespace cast |
76 } // namespace media | 71 } // namespace media |
77 | 72 |
78 #endif // MEDIA_CAST_CAST_THREAD_H_ | 73 #endif // MEDIA_CAST_CAST_THREAD_H_ |
OLD | NEW |