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

Side by Side Diff: remoting/host/chromoting_host_context.h

Issue 10914029: Use a separate thread for audio capturing and encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « remoting/host/chromoting_host.cc ('k') | remoting/host/chromoting_host_context.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 (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 REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_
6 #define REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ 6 #define REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // plugin this corresponds to the main plugin thread. 42 // plugin this corresponds to the main plugin thread.
43 virtual base::SingleThreadTaskRunner* ui_task_runner(); 43 virtual base::SingleThreadTaskRunner* ui_task_runner();
44 44
45 // Task runner for the thread used by the ScreenRecorder to capture 45 // Task runner for the thread used by the ScreenRecorder to capture
46 // the screen. 46 // the screen.
47 virtual base::SingleThreadTaskRunner* capture_task_runner(); 47 virtual base::SingleThreadTaskRunner* capture_task_runner();
48 48
49 // Task runner for the thread used to encode video streams. 49 // Task runner for the thread used to encode video streams.
50 virtual base::SingleThreadTaskRunner* encode_task_runner(); 50 virtual base::SingleThreadTaskRunner* encode_task_runner();
51 51
52 // Task runner for the thread used for audio capture and encoding.
53 virtual base::SingleThreadTaskRunner* audio_task_runner();
54
52 // Task runner for the thread used for network IO. This thread runs 55 // Task runner for the thread used for network IO. This thread runs
53 // a libjingle message loop, and is the only thread on which 56 // a libjingle message loop, and is the only thread on which
54 // libjingle code may be run. 57 // libjingle code may be run.
55 virtual base::SingleThreadTaskRunner* network_task_runner(); 58 virtual base::SingleThreadTaskRunner* network_task_runner();
56 59
57 // Task runner for the thread that is used by the EventExecutor. 60 // Task runner for the thread that is used by the EventExecutor.
58 // 61 //
59 // TODO(sergeyu): Do we need a separate thread for EventExecutor? 62 // TODO(sergeyu): Do we need a separate thread for EventExecutor?
60 // Can we use some other thread instead? 63 // Can we use some other thread instead?
61 virtual base::SingleThreadTaskRunner* desktop_task_runner(); 64 virtual base::SingleThreadTaskRunner* desktop_task_runner();
(...skipping 11 matching lines...) Expand all
73 76
74 // A thread that hosts all network operations. 77 // A thread that hosts all network operations.
75 base::Thread network_thread_; 78 base::Thread network_thread_;
76 79
77 // A thread that hosts screen capture. 80 // A thread that hosts screen capture.
78 base::Thread capture_thread_; 81 base::Thread capture_thread_;
79 82
80 // A thread that hosts all encode operations. 83 // A thread that hosts all encode operations.
81 base::Thread encode_thread_; 84 base::Thread encode_thread_;
82 85
86 // A thread that hosts audio capture and encoding.
87 base::Thread audio_thread_;
88
83 // A thread that hosts input injection. 89 // A thread that hosts input injection.
84 base::Thread desktop_thread_; 90 base::Thread desktop_thread_;
85 91
86 // Thread for blocking IO operations. 92 // Thread for blocking IO operations.
87 base::Thread file_thread_; 93 base::Thread file_thread_;
88 94
89 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 95 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
90 96
91 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 97 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
92 98
93 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); 99 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext);
94 }; 100 };
95 101
96 } // namespace remoting 102 } // namespace remoting
97 103
98 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ 104 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698