1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2014 Samsung Electronics. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_EFL_H_
7 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_EFL_H_
9 #include "base/base_export.h"
10 #include "base/message_loop/message_pump.h"
11 #include "base/threading/non_thread_safe.h"
19 class BASE_EXPORT MessagePumpEcore : public MessagePump {
22 ~MessagePumpEcore() override;
24 void Run(Delegate* delegate) override;
26 void ScheduleWork() override;
27 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override;
29 void HandleScheduledWork();
32 // We may make recursive calls to Run, so we save state that needs to be
33 // separate between them in this structure type.
37 // This is the time when we need to do delayed work.
38 TimeTicks delayed_work_time_;
41 base::Lock schedule_work_lock_;
47 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_EFL_H_