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

Unified Diff: mojo/edk/system/awakable_list.h

Issue 2725133002: Mojo: Armed Watchers (Closed)
Patch Set: . Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/system/awakable_list.h
diff --git a/mojo/edk/system/awakable_list.h b/mojo/edk/system/awakable_list.h
index 355677f7036771af72221e0ceee8d9d7c09b6f60..34d6b06922a041498d06a7d155c1124f4a8922d7 100644
--- a/mojo/edk/system/awakable_list.h
+++ b/mojo/edk/system/awakable_list.h
@@ -12,8 +12,6 @@
#include "base/macros.h"
#include "mojo/edk/system/system_impl_export.h"
-#include "mojo/edk/system/watcher.h"
-#include "mojo/edk/system/watcher_set.h"
#include "mojo/public/c/system/types.h"
namespace mojo {
@@ -39,13 +37,6 @@ class MOJO_SYSTEM_IMPL_EXPORT AwakableList {
void Add(Awakable* awakable, MojoHandleSignals signals, uintptr_t context);
void Remove(Awakable* awakable);
- // Add and remove Watchers to this AwakableList.
- MojoResult AddWatcher(MojoHandleSignals signals,
- const Watcher::WatchCallback& callback,
- uintptr_t context,
- const HandleSignalsState& current_state);
- MojoResult RemoveWatcher(uintptr_t context);
-
private:
struct AwakeInfo {
AwakeInfo(Awakable* awakable, MojoHandleSignals signals, uintptr_t context)
@@ -59,10 +50,6 @@ class MOJO_SYSTEM_IMPL_EXPORT AwakableList {
AwakeInfoList awakables_;
- // TODO: Remove AwakableList and instead use WatcherSet directly in
- // dispatchers.
- WatcherSet watchers_;
-
DISALLOW_COPY_AND_ASSIGN(AwakableList);
};

Powered by Google App Engine
This is Rietveld 408576698