|
Make Callback::Reset() return a copy to support use-cases where Run() ends up modifying |*this|. Callers can use
cb.Reset().Run(args...);
to avoid reentrancy-like bugs.
Replace the special-purpose versions of ResetAndRunCB in the media/ codebase
with this more-general facility.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128772
Total comments: 3
Total comments: 4
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+72 lines, -40 lines) |
Patch |
 |
M |
base/base.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
base/callback_helpers.h
|
View
|
1
2
3
4
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/callback_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+25 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/renderer/media/capture_video_decoder.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/composite_filter.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/composite_filter_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/filters.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/base/filters.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
media/filters/audio_renderer_base.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/gpu_video_decoder.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/video_renderer_base.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|