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

Side by Side Diff: remoting/client/client_context.h

Issue 7575016: Don't use JingleThread in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update DEPS Created 9 years, 4 months 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
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/client_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CLIENT_CLIENT_CONTEXT_H_ 5 #ifndef REMOTING_CLIENT_CLIENT_CONTEXT_H_
6 #define REMOTING_CLIENT_CLIENT_CONTEXT_H_ 6 #define REMOTING_CLIENT_CLIENT_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "remoting/jingle_glue/jingle_thread.h"
12 11
13 namespace remoting { 12 namespace remoting {
14 13
15 // A class that manages threads and running context for the chromoting client 14 // A class that manages threads and running context for the chromoting client
16 // process. 15 // process.
17 class ClientContext { 16 class ClientContext {
18 public: 17 public:
19 ClientContext(); 18 ClientContext();
20 virtual ~ClientContext(); 19 virtual ~ClientContext();
21 20
22 void Start(); 21 void Start();
23 void Stop(); 22 void Stop();
24 23
25 JingleThread* jingle_thread();
26
27 MessageLoop* main_message_loop(); 24 MessageLoop* main_message_loop();
28 MessageLoop* decode_message_loop(); 25 MessageLoop* decode_message_loop();
29 MessageLoop* network_message_loop(); 26 MessageLoop* network_message_loop();
30 27
31 private: 28 private:
32 // A thread that handles Jingle network operations (used in
33 // JingleHostConnection).
34 JingleThread jingle_thread_;
35
36 // A thread that handles capture rate control and sending data to the 29 // A thread that handles capture rate control and sending data to the
37 // HostConnection. 30 // HostConnection.
38 base::Thread main_thread_; 31 base::Thread main_thread_;
39 32
40 // A thread that handles all decode operations. 33 // A thread that handles all decode operations.
41 base::Thread decode_thread_; 34 base::Thread decode_thread_;
42 35
36 // A thread that handles all network IO.
37 base::Thread network_thread_;
38
43 DISALLOW_COPY_AND_ASSIGN(ClientContext); 39 DISALLOW_COPY_AND_ASSIGN(ClientContext);
44 }; 40 };
45 41
46 } // namespace remoting 42 } // namespace remoting
47 43
48 #endif // REMOTING_CLIENT_CLIENT_CONTEXT_H_ 44 #endif // REMOTING_CLIENT_CLIENT_CONTEXT_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/client_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698