| 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 #include "remoting/host/chromoting_host_context.h" | 5 #include "remoting/host/chromoting_host_context.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "remoting/jingle_glue/jingle_thread.h" | 10 #include "remoting/jingle_glue/jingle_thread.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 ChromotingHostContext::ChromotingHostContext() | 14 ChromotingHostContext::ChromotingHostContext() |
| 15 : main_thread_("ChromotingMainThread"), | 15 : main_thread_("ChromotingMainThread"), |
| 16 encode_thread_("ChromotingEncodeThread") { | 16 encode_thread_("ChromotingEncodeThread") { |
| 17 } | 17 } |
| 18 | 18 |
| 19 ChromotingHostContext::~ChromotingHostContext() { | 19 ChromotingHostContext::~ChromotingHostContext() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 MessageLoop* ChromotingHostContext::encode_message_loop() { | 44 MessageLoop* ChromotingHostContext::encode_message_loop() { |
| 45 return encode_thread_.message_loop(); | 45 return encode_thread_.message_loop(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 MessageLoop* ChromotingHostContext::network_message_loop() { | 48 MessageLoop* ChromotingHostContext::network_message_loop() { |
| 49 return jingle_thread_.message_loop(); | 49 return jingle_thread_.message_loop(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace remoting | 52 } // namespace remoting |
| OLD | NEW |