DescriptionSupport binding WeakPtr<> to methods with void return types.
This should give functionality similar to ScopedRunnableMethodFactory.
Note that binding a WeakPtr only make sense with methods with void return types. If the return type is not void, then it is unclear what the function should return when the pointer is invalidated.
This code adds a compile time assert to check the return type.
BUG=35223
TEST=unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85549
Patch Set 1 #Patch Set 2 : fix copyright #
Total comments: 7
Patch Set 3 : fix will's comments #Patch Set 4 : fix a few comments. #
Messages
Total messages: 7 (0 generated)
|