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

Side by Side Diff: base/synchronization/waitable_event_watcher.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « base/message_pump_default.h ('k') | base/task_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // ----------------------------------------------------------------------------- 61 // -----------------------------------------------------------------------------
62 62
63 class BASE_API WaitableEventWatcher 63 class BASE_API WaitableEventWatcher
64 #if defined(OS_POSIX) 64 #if defined(OS_POSIX)
65 : public MessageLoop::DestructionObserver 65 : public MessageLoop::DestructionObserver
66 #endif 66 #endif
67 { 67 {
68 public: 68 public:
69 69
70 WaitableEventWatcher(); 70 WaitableEventWatcher();
71 ~WaitableEventWatcher(); 71 virtual ~WaitableEventWatcher();
72 72
73 class Delegate { 73 class Delegate {
74 public: 74 public:
75 virtual ~Delegate() { } 75 virtual ~Delegate() { }
76 76
77 // ------------------------------------------------------------------------- 77 // -------------------------------------------------------------------------
78 // This is called on the MessageLoop thread when WaitableEvent has been 78 // This is called on the MessageLoop thread when WaitableEvent has been
79 // signaled. 79 // signaled.
80 // 80 //
81 // Note: the event may not be signaled by the time that this function is 81 // Note: the event may not be signaled by the time that this function is
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #endif 155 #endif
156 156
157 WaitableEvent* event_; 157 WaitableEvent* event_;
158 158
159 Delegate* delegate_; 159 Delegate* delegate_;
160 }; 160 };
161 161
162 } // namespace base 162 } // namespace base
163 163
164 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_ 164 #endif // BASE_SYNCHRONIZATION_WAITABLE_EVENT_WATCHER_H_
OLDNEW
« no previous file with comments | « base/message_pump_default.h ('k') | base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698