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

Side by Side Diff: remoting/jingle_glue/jingle_thread.cc

Issue 7529003: Make base::MessageLoops have names at construction time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make message loop name optional. 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 | « content/worker/worker_main.cc ('k') | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « content/worker/worker_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698