OLD | NEW |
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 #include "remoting/jingle_glue/jingle_thread.h" | 5 #include "remoting/jingle_glue/jingle_thread.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_pump.h" | 9 #include "base/message_pump.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 talk_base::Thread* thread_; | 108 talk_base::Thread* thread_; |
109 Delegate* delegate_; | 109 Delegate* delegate_; |
110 base::TimeTicks delayed_work_time_; | 110 base::TimeTicks delayed_work_time_; |
111 bool stopping_; | 111 bool stopping_; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace | 114 } // namespace |
115 | 115 |
116 JingleThreadMessageLoop::JingleThreadMessageLoop(talk_base::Thread* thread) | 116 JingleThreadMessageLoop::JingleThreadMessageLoop(talk_base::Thread* thread) |
117 : MessageLoop(MessageLoop::TYPE_IO) { | 117 : MessageLoop("JingleThread", MessageLoop::TYPE_IO) { |
118 pump_ = new JingleMessagePump(thread); | 118 pump_ = new JingleMessagePump(thread); |
119 } | 119 } |
120 | 120 |
121 JingleThreadMessageLoop::~JingleThreadMessageLoop() { | 121 JingleThreadMessageLoop::~JingleThreadMessageLoop() { |
122 } | 122 } |
123 | 123 |
124 TaskPump::TaskPump() { | 124 TaskPump::TaskPump() { |
125 } | 125 } |
126 | 126 |
127 void TaskPump::WakeTasks() { | 127 void TaskPump::WakeTasks() { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 MessageLoop* JingleThread::message_loop() { | 179 MessageLoop* JingleThread::message_loop() { |
180 return message_loop_; | 180 return message_loop_; |
181 } | 181 } |
182 | 182 |
183 TaskPump* JingleThread::task_pump() { | 183 TaskPump* JingleThread::task_pump() { |
184 return task_pump_; | 184 return task_pump_; |
185 } | 185 } |
186 | 186 |
187 } // namespace remoting | 187 } // namespace remoting |
OLD | NEW |