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

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

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process base/ Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_pump.h" 10 #include "base/message_loop/message_pump.h"
(...skipping 17 matching lines...) Expand all
28 // public for simplicity but should not be used directly. HandlePrepare 28 // public for simplicity but should not be used directly. HandlePrepare
29 // is called during the prepare step of glib, and returns a timeout that 29 // is called during the prepare step of glib, and returns a timeout that
30 // will be passed to the poll. HandleCheck is called after the poll 30 // will be passed to the poll. HandleCheck is called after the poll
31 // has completed, and returns whether or not HandleDispatch should be called. 31 // has completed, and returns whether or not HandleDispatch should be called.
32 // HandleDispatch is called if HandleCheck returned true. 32 // HandleDispatch is called if HandleCheck returned true.
33 int HandlePrepare(); 33 int HandlePrepare();
34 bool HandleCheck(); 34 bool HandleCheck();
35 void HandleDispatch(); 35 void HandleDispatch();
36 36
37 // Overridden from MessagePump: 37 // Overridden from MessagePump:
38 virtual void Run(Delegate* delegate) OVERRIDE; 38 void Run(Delegate* delegate) override;
39 virtual void Quit() OVERRIDE; 39 void Quit() override;
40 virtual void ScheduleWork() OVERRIDE; 40 void ScheduleWork() override;
41 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) OVERRIDE; 41 void ScheduleDelayedWork(const TimeTicks& delayed_work_time) override;
42 42
43 private: 43 private:
44 bool ShouldQuit() const; 44 bool ShouldQuit() const;
45 45
46 // We may make recursive calls to Run, so we save state that needs to be 46 // We may make recursive calls to Run, so we save state that needs to be
47 // separate between them in this structure type. 47 // separate between them in this structure type.
48 struct RunState; 48 struct RunState;
49 49
50 RunState* state_; 50 RunState* state_;
51 51
(...skipping 17 matching lines...) Expand all
69 int wakeup_pipe_write_; 69 int wakeup_pipe_write_;
70 // Use a scoped_ptr to avoid needing the definition of GPollFD in the header. 70 // Use a scoped_ptr to avoid needing the definition of GPollFD in the header.
71 scoped_ptr<GPollFD> wakeup_gpollfd_; 71 scoped_ptr<GPollFD> wakeup_gpollfd_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlib); 73 DISALLOW_COPY_AND_ASSIGN(MessagePumpGlib);
74 }; 74 };
75 75
76 } // namespace base 76 } // namespace base
77 77
78 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_ 78 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_GLIB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698