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 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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // | 42 // |
43 // TODO(sergeyu): Do we need a separate thread for InputInjector? | 43 // TODO(sergeyu): Do we need a separate thread for InputInjector? |
44 // Can we use some other thread instead? | 44 // Can we use some other thread instead? |
45 scoped_refptr<AutoThreadTaskRunner> input_task_runner(); | 45 scoped_refptr<AutoThreadTaskRunner> input_task_runner(); |
46 | 46 |
47 // Task runner for the thread used for network IO. This thread runs | 47 // Task runner for the thread used for network IO. This thread runs |
48 // a libjingle message loop, and is the only thread on which | 48 // a libjingle message loop, and is the only thread on which |
49 // libjingle code may be run. | 49 // libjingle code may be run. |
50 scoped_refptr<AutoThreadTaskRunner> network_task_runner(); | 50 scoped_refptr<AutoThreadTaskRunner> network_task_runner(); |
51 | 51 |
52 // Task runner for the thread that is used for the UI. In the NPAPI | 52 // Task runner for the thread that is used for the UI. |
53 // plugin this corresponds to the main plugin thread. | |
54 scoped_refptr<AutoThreadTaskRunner> ui_task_runner(); | 53 scoped_refptr<AutoThreadTaskRunner> ui_task_runner(); |
55 | 54 |
56 // Task runner for the thread used by the ScreenRecorder to capture | 55 // Task runner for the thread used by the ScreenRecorder to capture |
57 // the screen. | 56 // the screen. |
58 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner(); | 57 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner(); |
59 | 58 |
60 // Task runner for the thread used to encode video streams. | 59 // Task runner for the thread used to encode video streams. |
61 scoped_refptr<AutoThreadTaskRunner> video_encode_task_runner(); | 60 scoped_refptr<AutoThreadTaskRunner> video_encode_task_runner(); |
62 | 61 |
63 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter(); | 62 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter(); |
(...skipping 24 matching lines...) Expand all Loading... |
88 | 87 |
89 // Serves URLRequestContexts that use the network and UI task runners. | 88 // Serves URLRequestContexts that use the network and UI task runners. |
90 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 89 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
91 | 90 |
92 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); | 91 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); |
93 }; | 92 }; |
94 | 93 |
95 } // namespace remoting | 94 } // namespace remoting |
96 | 95 |
97 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 96 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
OLD | NEW |