|
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 (on linux and windows):
ninja -C out/Debug chrome
out/Debug/base_unittests --gtest_filter=*WaitableEventWatcherTest*
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179987
Total comments: 14
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+112 lines, -159 lines) |
Patch |
 |
M |
base/synchronization/waitable_event_watcher.h
|
View
|
1
2
3
4
|
3 chunks |
+21 lines, -71 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/waitable_event_watcher_posix.cc
|
View
|
1
2
3
4
|
7 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/waitable_event_watcher_unittest.cc
|
View
|
1
2
3
4
|
7 chunks |
+18 lines, -20 lines |
0 comments
|
Download
|
 |
M |
base/synchronization/waitable_event_watcher_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browsing_data/browsing_data_remover.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browsing_data/browsing_data_remover.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/plugin_data_remover_impl_browsertest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/plugin_service_impl.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/plugin_service_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_sync_channel.h
|
View
|
1
2
3
4
|
6 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ipc/ipc_sync_channel.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|