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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 void MessageLoop::ReleaseSoonInternal( | 688 void MessageLoop::ReleaseSoonInternal( |
689 const tracked_objects::Location& from_here, | 689 const tracked_objects::Location& from_here, |
690 void(*releaser)(const void*), | 690 void(*releaser)(const void*), |
691 const void* object) { | 691 const void* object) { |
692 PostNonNestableTask(from_here, Bind(releaser, object)); | 692 PostNonNestableTask(from_here, Bind(releaser, object)); |
693 } | 693 } |
694 | 694 |
695 //------------------------------------------------------------------------------ | 695 //------------------------------------------------------------------------------ |
696 // MessageLoopForUI | 696 // MessageLoopForUI |
697 | 697 |
698 #if defined(OS_WIN) | |
699 void MessageLoopForUI::DidProcessMessage(const MSG& message) { | |
700 pump_win()->DidProcessMessage(message); | |
701 } | |
702 #endif // defined(OS_WIN) | |
703 | |
704 #if defined(OS_ANDROID) | 698 #if defined(OS_ANDROID) |
705 void MessageLoopForUI::Start() { | 699 void MessageLoopForUI::Start() { |
706 // No Histogram support for UI message loop as it is managed by Java side | 700 // No Histogram support for UI message loop as it is managed by Java side |
707 static_cast<MessagePumpForUI*>(pump_.get())->Start(this); | 701 static_cast<MessagePumpForUI*>(pump_.get())->Start(this); |
708 } | 702 } |
709 #endif | 703 #endif |
710 | 704 |
711 #if defined(OS_IOS) | 705 #if defined(OS_IOS) |
712 void MessageLoopForUI::Attach() { | 706 void MessageLoopForUI::Attach() { |
713 static_cast<MessagePumpUIApplication*>(pump_.get())->Attach(this); | 707 static_cast<MessagePumpUIApplication*>(pump_.get())->Attach(this); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 fd, | 762 fd, |
769 persistent, | 763 persistent, |
770 mode, | 764 mode, |
771 controller, | 765 controller, |
772 delegate); | 766 delegate); |
773 } | 767 } |
774 | 768 |
775 #endif | 769 #endif |
776 | 770 |
777 } // namespace base | 771 } // namespace base |
OLD | NEW |