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

Side by Side Diff: chrome/renderer/media/cast_threads.h

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.h ('k') | chrome/service/service_process.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Manages threads used by Cast Streaming Extensions API. There is a 5 // Manages threads used by Cast Streaming Extensions API. There is a
6 // singleton object of this class in the renderer. 6 // singleton object of this class in the renderer.
7 // 7 //
8 // There are two threads owned by this class: 8 // There are two threads owned by this class:
9 // 1. Audio encode thread. 9 // 1. Audio encode thread.
10 // 2. Video encode thread. 10 // 2. Video encode thread.
11 // These two threads are started this object is created. 11 // These two threads are started this object is created.
12 12
13 #ifndef CHROME_RENDERER_MEDIA_CAST_THREADS_H_ 13 #ifndef CHROME_RENDERER_MEDIA_CAST_THREADS_H_
14 #define CHROME_RENDERER_MEDIA_CAST_THREADS_H_ 14 #define CHROME_RENDERER_MEDIA_CAST_THREADS_H_
15 15
16 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/single_thread_task_runner.h"
18 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
19 20
20 class CastThreads { 21 class CastThreads {
21 public: 22 public:
22 scoped_refptr<base::SingleThreadTaskRunner> GetAudioEncodeTaskRunner(); 23 scoped_refptr<base::SingleThreadTaskRunner> GetAudioEncodeTaskRunner();
23 scoped_refptr<base::SingleThreadTaskRunner> GetVideoEncodeTaskRunner(); 24 scoped_refptr<base::SingleThreadTaskRunner> GetVideoEncodeTaskRunner();
24 25
25 private: 26 private:
26 friend struct base::LazyInstanceTraitsBase<CastThreads>; 27 friend struct base::LazyInstanceTraitsBase<CastThreads>;
27 28
28 CastThreads(); 29 CastThreads();
29 30
30 base::Thread audio_encode_thread_; 31 base::Thread audio_encode_thread_;
31 base::Thread video_encode_thread_; 32 base::Thread video_encode_thread_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(CastThreads); 34 DISALLOW_COPY_AND_ASSIGN(CastThreads);
34 }; 35 };
35 36
36 #endif // CHROME_RENDERER_MEDIA_CAST_THREADS_H_ 37 #endif // CHROME_RENDERER_MEDIA_CAST_THREADS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698