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

Side by Side Diff: base/message_loop/message_pump_default.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « base/message_loop/message_pump_android.cc ('k') | base/message_loop/message_pump_default.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_DEFAULT_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_DEFAULT_H_
7
8 #include "base/base_export.h"
9 #include "base/message_loop/message_pump.h"
10 #include "base/synchronization/waitable_event.h"
11 #include "base/time/time.h"
12
13 namespace base {
14
15 class BASE_EXPORT MessagePumpDefault : public MessagePump {
16 public:
17 MessagePumpDefault();
18 ~MessagePumpDefault() override;
19
20 // MessagePump methods:
21 void Run(Delegate* delegate) override;
22 void Quit() override;
23 void ScheduleWork() override;
24 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override;
25
26 private:
27 // This flag is set to false when Run should return.
28 bool keep_running_;
29
30 // Used to sleep until there is more work to do.
31 WaitableEvent event_;
32
33 // The time at which we should call DoDelayedWork.
34 TimeTicks delayed_work_time_;
35
36 DISALLOW_COPY_AND_ASSIGN(MessagePumpDefault);
37 };
38
39 } // namespace base
40
41 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_DEFAULT_H_
OLDNEW
« no previous file with comments | « base/message_loop/message_pump_android.cc ('k') | base/message_loop/message_pump_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698