OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
418 } | 418 } |
419 return; | 419 return; |
420 } | 420 } |
421 #endif | 421 #endif |
422 | 422 |
423 void MessageLoop::RunInternal() { | 423 void MessageLoop::RunInternal() { |
424 DCHECK_EQ(this, current()); | 424 DCHECK_EQ(this, current()); |
425 | 425 |
426 StartHistogrammer(); | 426 StartHistogrammer(); |
427 | 427 |
428 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) | 428 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(USE_GTK_MESSAGE_PUMP ) |
piman
2013/09/05 17:37:47
I'm not sure I understand why it's ok not to run w
sadrul
2013/09/05 17:53:12
Chrome currently does not use any Dispatcher in li
| |
429 if (run_loop_->dispatcher_ && type() == TYPE_UI) { | 429 if (run_loop_->dispatcher_ && type() == TYPE_UI) { |
430 static_cast<MessagePumpForUI*>(pump_.get())-> | 430 static_cast<MessagePumpForUI*>(pump_.get())-> |
431 RunWithDispatcher(this, run_loop_->dispatcher_); | 431 RunWithDispatcher(this, run_loop_->dispatcher_); |
432 return; | 432 return; |
433 } | 433 } |
434 #endif | 434 #endif |
435 | 435 |
436 pump_->Run(this); | 436 pump_->Run(this); |
437 } | 437 } |
438 | 438 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
749 fd, | 749 fd, |
750 persistent, | 750 persistent, |
751 mode, | 751 mode, |
752 controller, | 752 controller, |
753 delegate); | 753 delegate); |
754 } | 754 } |
755 | 755 |
756 #endif | 756 #endif |
757 | 757 |
758 } // namespace base | 758 } // namespace base |
OLD | NEW |