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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Task runner for the thread used by the ScreenRecorder to capture | 56 // Task runner for the thread used by the ScreenRecorder to capture |
57 // the screen. | 57 // the screen. |
58 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner(); | 58 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner(); |
59 | 59 |
60 // Task runner for the thread used to encode video streams. | 60 // Task runner for the thread used to encode video streams. |
61 scoped_refptr<AutoThreadTaskRunner> video_encode_task_runner(); | 61 scoped_refptr<AutoThreadTaskRunner> video_encode_task_runner(); |
62 | 62 |
63 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter(); | 63 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter(); |
64 | 64 |
65 private: | 65 private: |
66 ChromotingHostContext(AutoThreadTaskRunner* ui_task_runner); | 66 explicit ChromotingHostContext(AutoThreadTaskRunner* ui_task_runner); |
67 | 67 |
68 // Thread for audio capture and encoding. | 68 // Thread for audio capture and encoding. |
69 scoped_refptr<AutoThreadTaskRunner> audio_task_runner_; | 69 scoped_refptr<AutoThreadTaskRunner> audio_task_runner_; |
70 | 70 |
71 // Thread for I/O operations. | 71 // Thread for I/O operations. |
72 scoped_refptr<AutoThreadTaskRunner> file_task_runner_; | 72 scoped_refptr<AutoThreadTaskRunner> file_task_runner_; |
73 | 73 |
74 // Thread for input injection. | 74 // Thread for input injection. |
75 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; | 75 scoped_refptr<AutoThreadTaskRunner> input_task_runner_; |
76 | 76 |
(...skipping 11 matching lines...) Expand all Loading... |
88 | 88 |
89 // Serves URLRequestContexts that use the network and UI task runners. | 89 // Serves URLRequestContexts that use the network and UI task runners. |
90 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 90 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); | 92 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace remoting | 95 } // namespace remoting |
96 | 96 |
97 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 97 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
OLD | NEW |