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

Unified Diff: base/synchronization/waitable_event_watcher_win.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/synchronization/waitable_event_watcher_unittest.cc ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/waitable_event_watcher_win.cc
diff --git a/base/synchronization/waitable_event_watcher_win.cc b/base/synchronization/waitable_event_watcher_win.cc
deleted file mode 100644
index 46d47ac581a8e3ff58f6d17a692fe3d5117196ae..0000000000000000000000000000000000000000
--- a/base/synchronization/waitable_event_watcher_win.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/synchronization/waitable_event_watcher.h"
-
-#include "base/compiler_specific.h"
-#include "base/synchronization/waitable_event.h"
-#include "base/win/object_watcher.h"
-
-namespace base {
-
-WaitableEventWatcher::WaitableEventWatcher()
- : event_(NULL) {
-}
-
-WaitableEventWatcher::~WaitableEventWatcher() {
-}
-
-bool WaitableEventWatcher::StartWatching(
- WaitableEvent* event,
- const EventCallback& callback) {
- callback_ = callback;
- event_ = event;
- return watcher_.StartWatching(event->handle(), this);
-}
-
-void WaitableEventWatcher::StopWatching() {
- callback_.Reset();
- event_ = NULL;
- watcher_.StopWatching();
-}
-
-WaitableEvent* WaitableEventWatcher::GetWatchedEvent() {
- return event_;
-}
-
-void WaitableEventWatcher::OnObjectSignaled(HANDLE h) {
- WaitableEvent* event = event_;
- EventCallback callback = callback_;
- event_ = NULL;
- callback_.Reset();
- DCHECK(event);
-
- callback.Run(event);
-}
-
-} // namespace base
« no previous file with comments | « base/synchronization/waitable_event_watcher_unittest.cc ('k') | base/synchronization/waitable_event_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698