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

Side by Side Diff: base/synchronization/waitable_event_watcher.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_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ 5 #ifndef BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_
6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ 6 #define BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Return the currently watched event, or NULL if no object is currently being 85 // Return the currently watched event, or NULL if no object is currently being
86 // watched. 86 // watched.
87 WaitableEvent* GetWatchedEvent(); 87 WaitableEvent* GetWatchedEvent();
88 88
89 // Return the callback that will be invoked when the event is 89 // Return the callback that will be invoked when the event is
90 // signaled. 90 // signaled.
91 const EventCallback& callback() const { return callback_; } 91 const EventCallback& callback() const { return callback_; }
92 92
93 private: 93 private:
94 #if defined(OS_WIN) 94 #if defined(OS_WIN)
95 virtual void OnObjectSignaled(HANDLE h) OVERRIDE; 95 void OnObjectSignaled(HANDLE h) override;
96 win::ObjectWatcher watcher_; 96 win::ObjectWatcher watcher_;
97 #else 97 #else
98 // Implementation of MessageLoop::DestructionObserver 98 // Implementation of MessageLoop::DestructionObserver
99 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; 99 void WillDestroyCurrentMessageLoop() override;
100 100
101 MessageLoop* message_loop_; 101 MessageLoop* message_loop_;
102 scoped_refptr<Flag> cancel_flag_; 102 scoped_refptr<Flag> cancel_flag_;
103 AsyncWaiter* waiter_; 103 AsyncWaiter* waiter_;
104 base::Closure internal_callback_; 104 base::Closure internal_callback_;
105 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; 105 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_;
106 #endif 106 #endif
107 107
108 WaitableEvent* event_; 108 WaitableEvent* event_;
109 EventCallback callback_; 109 EventCallback callback_;
110 }; 110 };
111 111
112 } // namespace base 112 } // namespace base
113 113
114 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ 114 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698