Chromium Code Reviews| 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/file_path.h" | |
| 8 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
| 14 } // namespace base | 15 } // namespace base |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 // libjingle code may be run. | 65 // libjingle code may be run. |
| 65 virtual base::SingleThreadTaskRunner* network_task_runner(); | 66 virtual base::SingleThreadTaskRunner* network_task_runner(); |
| 66 | 67 |
| 67 // Task runner for the thread that is used for the UI. In the NPAPI | 68 // Task runner for the thread that is used for the UI. In the NPAPI |
| 68 // plugin this corresponds to the main plugin thread. | 69 // plugin this corresponds to the main plugin thread. |
| 69 virtual base::SingleThreadTaskRunner* ui_task_runner(); | 70 virtual base::SingleThreadTaskRunner* ui_task_runner(); |
| 70 | 71 |
| 71 const scoped_refptr<net::URLRequestContextGetter>& | 72 const scoped_refptr<net::URLRequestContextGetter>& |
| 72 url_request_context_getter(); | 73 url_request_context_getter(); |
| 73 | 74 |
| 75 #if defined(OS_LINUX) | |
| 76 // The path for the pipe used by the Linux's audio capturer. | |
|
Lambros
2012/09/13 00:18:27
nit: remove "'s" ?
Sergey Ulanov
2012/09/13 01:13:02
Done.
| |
| 77 FilePath& audio_capturer_pipe(); | |
| 78 void set_audio_capturer_pipe(const FilePath& value); | |
| 79 #endif // OS_LINUX | |
| 80 | |
| 74 private: | 81 private: |
| 75 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop); | 82 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop); |
| 76 | 83 |
| 77 // A thread that hosts audio capture and encoding. | 84 // A thread that hosts audio capture and encoding. |
| 78 base::Thread audio_thread_; | 85 base::Thread audio_thread_; |
| 79 | 86 |
| 80 // A thread that hosts screen capture. | 87 // A thread that hosts screen capture. |
| 81 base::Thread capture_thread_; | 88 base::Thread capture_thread_; |
| 82 | 89 |
| 83 // A thread that hosts input injection. | 90 // A thread that hosts input injection. |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 98 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_; | 105 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner_; |
| 99 scoped_refptr<base::SingleThreadTaskRunner> desktop_task_runner_; | 106 scoped_refptr<base::SingleThreadTaskRunner> desktop_task_runner_; |
| 100 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner_; | 107 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner_; |
| 101 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 108 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
| 102 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 109 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
| 103 | 110 |
| 104 scoped_refptr<AutoThreadTaskRunner> ui_task_runner_; | 111 scoped_refptr<AutoThreadTaskRunner> ui_task_runner_; |
| 105 | 112 |
| 106 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 113 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
| 107 | 114 |
| 115 FilePath audio_capturer_pipe_; | |
| 116 | |
| 108 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); | 117 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); |
| 109 }; | 118 }; |
| 110 | 119 |
| 111 } // namespace remoting | 120 } // namespace remoting |
| 112 | 121 |
| 113 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 122 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
| OLD | NEW |