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

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

Issue 7633009: Use MessageLoopProxy for network message loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - 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/host/chromoting_host.cc ('k') | remoting/host/chromoting_host_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 // create a static factory for construction, and destruction. We 37 // create a static factory for construction, and destruction. We
38 // should be able to remove the need for virtual functions below with that 38 // should be able to remove the need for virtual functions below with that
39 // design, while preserving the relative simplicity of this API. 39 // design, while preserving the relative simplicity of this API.
40 virtual void Start(); 40 virtual void Start();
41 virtual void Stop(); 41 virtual void Stop();
42 42
43 virtual JingleThread* jingle_thread(); 43 virtual JingleThread* jingle_thread();
44 44
45 virtual MessageLoop* main_message_loop(); 45 virtual MessageLoop* main_message_loop();
46 virtual MessageLoop* encode_message_loop(); 46 virtual MessageLoop* encode_message_loop();
47 virtual MessageLoop* network_message_loop(); 47 virtual base::MessageLoopProxy* network_message_loop();
48 virtual MessageLoop* desktop_message_loop(); 48 virtual MessageLoop* desktop_message_loop();
49 49
50 // Must be called from the main GUI thread. 50 // Must be called from the main GUI thread.
51 void SetUITaskPostFunction(const UIThreadPostTaskFunction& poster); 51 void SetUITaskPostFunction(const UIThreadPostTaskFunction& poster);
52 52
53 void PostTaskToUIThread(const tracked_objects::Location& from_here, 53 void PostTaskToUIThread(const tracked_objects::Location& from_here,
54 const base::Closure& task); 54 const base::Closure& task);
55 void PostDelayedTaskToUIThread(const tracked_objects::Location& from_here, 55 void PostDelayedTaskToUIThread(const tracked_objects::Location& from_here,
56 const base::Closure& task, 56 const base::Closure& task,
57 int delay_ms); 57 int delay_ms);
(...skipping 19 matching lines...) Expand all
77 // This IS the main Chrome GUI thread that |ui_poster_| will post to. 77 // This IS the main Chrome GUI thread that |ui_poster_| will post to.
78 base::PlatformThreadId ui_main_thread_id_; 78 base::PlatformThreadId ui_main_thread_id_;
79 79
80 80
81 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext); 81 DISALLOW_COPY_AND_ASSIGN(ChromotingHostContext);
82 }; 82 };
83 83
84 } // namespace remoting 84 } // namespace remoting
85 85
86 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_ 86 #endif // REMOTING_HOST_CHROMOTING_HOST_CONTEXT_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698