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

Side by Side Diff: remoting/host/simple_host_process.cc

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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
« no previous file with comments | « remoting/host/session_manager_unittest.cc ('k') | remoting/remoting.gyp » ('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 // This is an application of a minimal host process in a Chromoting 5 // This is an application of a minimal host process in a Chromoting
6 // system. It serves the purpose of gluing different pieces together 6 // system. It serves the purpose of gluing different pieces together
7 // to make a functional host process for testing. 7 // to make a functional host process for testing.
8 // 8 //
9 // It peforms the following functionality: 9 // It peforms the following functionality:
10 // 1. Connect to the GTalk network and register the machine as a host. 10 // 1. Connect to the GTalk network and register the machine as a host.
(...skipping 14 matching lines...) Expand all
25 #include "base/logging.h" 25 #include "base/logging.h"
26 #include "base/nss_util.h" 26 #include "base/nss_util.h"
27 #include "base/scoped_nsautorelease_pool.h" 27 #include "base/scoped_nsautorelease_pool.h"
28 #include "base/thread.h" 28 #include "base/thread.h"
29 #include "remoting/base/encoder_verbatim.h" 29 #include "remoting/base/encoder_verbatim.h"
30 #include "remoting/base/encoder_zlib.h" 30 #include "remoting/base/encoder_zlib.h"
31 #include "remoting/host/capturer_fake.h" 31 #include "remoting/host/capturer_fake.h"
32 #include "remoting/host/chromoting_host.h" 32 #include "remoting/host/chromoting_host.h"
33 #include "remoting/host/chromoting_host_context.h" 33 #include "remoting/host/chromoting_host_context.h"
34 #include "remoting/host/json_host_config.h" 34 #include "remoting/host/json_host_config.h"
35 #include "remoting/base/tracer.h"
35 36
36 #if defined(OS_WIN) 37 #if defined(OS_WIN)
37 #include "remoting/host/capturer_gdi.h" 38 #include "remoting/host/capturer_gdi.h"
38 #include "remoting/host/event_executor_win.h" 39 #include "remoting/host/event_executor_win.h"
39 #elif defined(OS_LINUX) 40 #elif defined(OS_LINUX)
40 #include "remoting/host/capturer_linux.h" 41 #include "remoting/host/capturer_linux.h"
41 #include "remoting/host/event_executor_linux.h" 42 #include "remoting/host/event_executor_linux.h"
42 #elif defined(OS_MACOSX) 43 #elif defined(OS_MACOSX)
43 #include "remoting/host/capturer_mac.h" 44 #include "remoting/host/capturer_mac.h"
44 #include "remoting/host/event_executor_mac.h" 45 #include "remoting/host/event_executor_mac.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Let the chromoting host run until the shutdown task is executed. 143 // Let the chromoting host run until the shutdown task is executed.
143 MessageLoop message_loop(MessageLoop::TYPE_UI); 144 MessageLoop message_loop(MessageLoop::TYPE_UI);
144 host->Start(NewRunnableFunction(&ShutdownTask, &message_loop)); 145 host->Start(NewRunnableFunction(&ShutdownTask, &message_loop));
145 message_loop.Run(); 146 message_loop.Run();
146 147
147 // And then stop the chromoting context. 148 // And then stop the chromoting context.
148 context.Stop(); 149 context.Stop();
149 file_io_thread.Stop(); 150 file_io_thread.Stop();
150 return 0; 151 return 0;
151 } 152 }
OLDNEW
« no previous file with comments | « remoting/host/session_manager_unittest.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698