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

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

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backup Created 10 years, 1 month 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
OLDNEW
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 10 matching lines...) Expand all
21 virtual ~ChromotingHostContext(); 21 virtual ~ChromotingHostContext();
22 22
23 // TODO(ajwong): Move the Start/Stop methods out of this class. Then 23 // TODO(ajwong): Move the Start/Stop methods out of this class. Then
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
32 // TODO(hclam): Change these all to MessageLoopProxy.
31 virtual MessageLoop* main_message_loop(); 33 virtual MessageLoop* main_message_loop();
32 virtual MessageLoop* capture_message_loop(); 34 virtual scoped_refptr<base::MessageLoopProxy> capture_message_loop_proxy();
awong 2010/11/12 01:40:10 The more I think about this, more I don't really s
33 virtual MessageLoop* encode_message_loop(); 35 virtual MessageLoop* encode_message_loop();
34 36
35 private: 37 private:
36 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop); 38 FRIEND_TEST_ALL_PREFIXES(ChromotingHostContextTest, StartAndStop);
37 39
38 // A thread that hosts all network operations. 40 // A thread that hosts all network operations.
39 JingleThread jingle_thread_; 41 JingleThread jingle_thread_;
40 42
41 // A thread that hosts ChromotingHost and performs rate control. 43 // A thread that hosts ChromotingHost and performs rate control.
42 base::Thread main_thread_; 44 base::Thread main_thread_;
43 45
44 // A thread that hosts all capture operations. 46 // A thread that hosts all capture operations.
45 base::Thread capture_thread_; 47 base::Thread capture_thread_;
46 48
47 // A thread that hosts all encode operations. 49 // A thread that hosts all encode operations.
48 base::Thread encode_thread_; 50 base::Thread encode_thread_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); 52 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext);
51 }; 53 };
52 54
53 } // namespace remoting 55 } // namespace remoting
54 56
55 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingHostContext); 57 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingHostContext);
56 58
57 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ 59 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698