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

Unified Diff: mojo/common/handle_watcher.h

Issue 506353002: Make HandleWatcher watch on the same thread if the thread is running a MessagePumpMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated unittests Created 6 years, 4 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
« no previous file with comments | « no previous file | mojo/common/handle_watcher.cc » ('j') | mojo/common/handle_watcher_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/handle_watcher.h
diff --git a/mojo/common/handle_watcher.h b/mojo/common/handle_watcher.h
index f40ae88b42633c2eba97c56dc7ccd0d73a1188d3..dfcb145122f796387ce1be44b1727211b5e04464 100644
--- a/mojo/common/handle_watcher.h
+++ b/mojo/common/handle_watcher.h
@@ -48,10 +48,12 @@ class MOJO_COMMON_EXPORT HandleWatcher {
void Stop();
private:
- class State;
+ class StateBase;
+ class SameThreadWatchingState;
+ class SecondaryThreadWatchingState;
// If non-NULL Start() has been invoked.
- scoped_ptr<State> state_;
+ scoped_ptr<StateBase> state_;
DISALLOW_COPY_AND_ASSIGN(HandleWatcher);
};
« no previous file with comments | « no previous file | mojo/common/handle_watcher.cc » ('j') | mojo/common/handle_watcher_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698