|
Refactor: Simplify WaitableEventWatcher.
This change uses a callback instead of a delegate for specifying what
should be called when a WaitableEvent occurs.
This simplifies the class and gets rid of a workaround internal to the
class to prevent name collision on "Delegate" inner classes.
Tested (linux and windows):
out/Debug/base_unittests --gtest_filter=*WaitableEventWatcherTest*
out/Release/ipc_tests with valgrind and leak-check=yes
Previously reverted at:
https://codereview.chromium.org/12087120/
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180450
Total comments: 3
Total comments: 3
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+116 lines, -160 lines) |
Patch |
|
M |
base/synchronization/waitable_event_watcher.h
|
View
|
1
2
3
4
|
3 chunks |
+22 lines, -72 lines |
0 comments
|
Download
|
|
M |
base/synchronization/waitable_event_watcher_posix.cc
|
View
|
|
7 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
|
M |
base/synchronization/waitable_event_watcher_unittest.cc
|
View
|
|
7 chunks |
+18 lines, -20 lines |
0 comments
|
Download
|
|
M |
base/synchronization/waitable_event_watcher_win.cc
|
View
|
|
2 chunks |
+11 lines, -23 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/browsing_data_remover.h
|
View
|
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/browsing_data_remover.cc
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
content/browser/plugin_data_remover_impl_browsertest.cc
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/plugin_service_impl.h
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/plugin_service_impl.cc
|
View
|
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_channel.h
|
View
|
1
2
3
4
|
6 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_sync_channel.cc
|
View
|
1
2
3
|
6 chunks |
+19 lines, -7 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|