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

Side by Side Diff: media/cast/cast_thread.h

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/cast_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
57 private: 60 private:
61 friend class base::RefCountedThreadSafe<CastThread>;
62
58 scoped_refptr<base::TaskRunner> GetMessageTaskRunnerForThread( 63 scoped_refptr<base::TaskRunner> GetMessageTaskRunnerForThread(
59 ThreadId identifier); 64 ThreadId identifier);
60 65
61 scoped_refptr<base::TaskRunner> main_thread_proxy_; 66 scoped_refptr<base::TaskRunner> main_thread_proxy_;
62 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy_; 67 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy_;
63 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy_; 68 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy_;
64 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_; 69 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_;
65 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_; 70 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_;
66 71
67 DISALLOW_COPY_AND_ASSIGN(CastThread); 72 DISALLOW_COPY_AND_ASSIGN(CastThread);
68 }; 73 };
69 74
70 } // namespace cast 75 } // namespace cast
71 } // namespace media 76 } // namespace media
72 77
73 #endif // MEDIA_CAST_CAST_THREAD_H_ 78 #endif // MEDIA_CAST_CAST_THREAD_H_
OLDNEW
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/cast_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698