OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 13 matching lines...) Expand all Loading... |
24 // create a static factory for construction, and destruction. We | 24 // create a static factory for construction, and destruction. We |
25 // should be able to remove the need for virtual functions below with that | 25 // should be able to remove the need for virtual functions below with that |
26 // design, while preserving the relative simplicity of this API. | 26 // design, while preserving the relative simplicity of this API. |
27 virtual void Start(); | 27 virtual void Start(); |
28 virtual void Stop(); | 28 virtual void Stop(); |
29 | 29 |
30 virtual JingleThread* jingle_thread(); | 30 virtual JingleThread* jingle_thread(); |
31 | 31 |
32 // TODO(hclam): Change these all to MessageLoopProxy. | 32 // TODO(hclam): Change these all to MessageLoopProxy. |
33 virtual MessageLoop* main_message_loop(); | 33 virtual MessageLoop* main_message_loop(); |
34 virtual MessageLoop* capture_message_loop(); | |
35 virtual MessageLoop* encode_message_loop(); | 34 virtual MessageLoop* encode_message_loop(); |
| 35 virtual MessageLoop* network_message_loop(); |
36 | 36 |
37 private: | 37 private: |
38 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop); | 38 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop); |
39 | 39 |
40 // A thread that hosts all network operations. | 40 // A thread that hosts all network operations. |
41 JingleThread jingle_thread_; | 41 JingleThread jingle_thread_; |
42 | 42 |
43 // A thread that hosts ChromotingHost and performs rate control. | 43 // A thread that hosts ChromotingHost and performs rate control. |
44 base::Thread main_thread_; | 44 base::Thread main_thread_; |
45 | 45 |
46 // A thread that hosts all capture operations. | |
47 base::Thread capture_thread_; | |
48 | |
49 // A thread that hosts all encode operations. | 46 // A thread that hosts all encode operations. |
50 base::Thread encode_thread_; | 47 base::Thread encode_thread_; |
51 | 48 |
52 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); | 49 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); |
53 }; | 50 }; |
54 | 51 |
55 } // namespace remoting | 52 } // namespace remoting |
56 | 53 |
57 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingHostContext); | 54 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingHostContext); |
58 | 55 |
59 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ | 56 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ |
OLD | NEW |