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

Side by Side Diff: base/synchronization/waitable_event_watcher_win.cc

Issue 6081007: Start sorting methods in class declarations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 9 years, 11 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/synchronization/waitable_event_watcher_posix.cc ('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 #include "base/synchronization/waitable_event_watcher.h" 5 #include "base/synchronization/waitable_event_watcher.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/win/object_watcher.h" 9 #include "base/win/object_watcher.h"
10 10
11 namespace base { 11 namespace base {
12 12
13 WaitableEventWatcher::ObjectWatcherHelper::ObjectWatcherHelper( 13 WaitableEventWatcher::ObjectWatcherHelper::ObjectWatcherHelper(
14 WaitableEventWatcher* watcher) 14 WaitableEventWatcher* watcher)
15 : watcher_(watcher) { 15 : watcher_(watcher) {
16 }; 16 };
17 17
18 void WaitableEventWatcher::ObjectWatcherHelper::OnObjectSignaled(HANDLE h) { 18 void WaitableEventWatcher::ObjectWatcherHelper::OnObjectSignaled(HANDLE h) {
19 watcher_->OnObjectSignaled(); 19 watcher_->OnObjectSignaled();
20 } 20 }
21 21
22 22
23 WaitableEventWatcher::WaitableEventWatcher() 23 WaitableEventWatcher::WaitableEventWatcher()
24 : event_(NULL), 24 : ALLOW_THIS_IN_INITIALIZER_LIST(helper_(this)),
25 ALLOW_THIS_IN_INITIALIZER_LIST(helper_(this)), 25 event_(NULL),
26 delegate_(NULL) { 26 delegate_(NULL) {
27 } 27 }
28 28
29 WaitableEventWatcher::~WaitableEventWatcher() { 29 WaitableEventWatcher::~WaitableEventWatcher() {
30 } 30 }
31 31
32 bool WaitableEventWatcher::StartWatching(WaitableEvent* event, 32 bool WaitableEventWatcher::StartWatching(WaitableEvent* event,
33 Delegate* delegate) { 33 Delegate* delegate) {
34 delegate_ = delegate; 34 delegate_ = delegate;
35 event_ = event; 35 event_ = event;
(...skipping 15 matching lines...) Expand all
51 WaitableEvent* event = event_; 51 WaitableEvent* event = event_;
52 Delegate* delegate = delegate_; 52 Delegate* delegate = delegate_;
53 event_ = NULL; 53 event_ = NULL;
54 delegate_ = NULL; 54 delegate_ = NULL;
55 DCHECK(event); 55 DCHECK(event);
56 56
57 delegate->OnWaitableEventSignaled(event); 57 delegate->OnWaitableEventSignaled(event);
58 } 58 }
59 59
60 } // namespace base 60 } // namespace base
OLDNEW
« no previous file with comments | « base/synchronization/waitable_event_watcher_posix.cc ('k') | base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698