| 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 // This file implements a simple X11 chromoting client. | 5 // This file implements a simple X11 chromoting client. |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/message_loop.h" |
| 10 #include "remoting/client/chromoting_client.h" | 11 #include "remoting/client/chromoting_client.h" |
| 11 #include "remoting/client/client_config.h" | 12 #include "remoting/client/client_config.h" |
| 12 #include "remoting/client/client_util.h" | 13 #include "remoting/client/client_util.h" |
| 13 #include "remoting/client/rectangle_update_decoder.h" | 14 #include "remoting/client/rectangle_update_decoder.h" |
| 14 #include "remoting/client/x11_view.h" | 15 #include "remoting/client/x11_view.h" |
| 15 #include "remoting/client/x11_input_handler.h" | 16 #include "remoting/client/x11_input_handler.h" |
| 16 #include "remoting/protocol/jingle_connection_to_host.h" | 17 #include "remoting/protocol/jingle_connection_to_host.h" |
| 17 | 18 |
| 18 void ClientQuit(MessageLoop* loop) { | 19 void ClientQuit(MessageLoop* loop) { |
| 19 loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); | 20 loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 // Run the client on a new MessageLoop until | 43 // Run the client on a new MessageLoop until |
| 43 context.Start(); | 44 context.Start(); |
| 44 client.Start(); | 45 client.Start(); |
| 45 ui_loop.Run(); | 46 ui_loop.Run(); |
| 46 | 47 |
| 47 client.Stop(); | 48 client.Stop(); |
| 48 context.Stop(); | 49 context.Stop(); |
| 49 | 50 |
| 50 return 0; | 51 return 0; |
| 51 } | 52 } |
| OLD | NEW |