DescriptionWire up onEvent and put it to use when UdpSocket::Write blocks.
This is a checkpoint commit. It does the following:
- if Write() blocks, calls onEvent() when the underlying socket finishes its work.
- Demonstrates a working framework for sending events back to JS.
It does NOT do any of the following:
- Prove that the above statements are true.
In order to cause a UDP socket to block, we pretty much have to mock it, and I determined that I'd have to refactor my Socket class to let me put in a ClientSocketFactory for testing, which will then let me work DelayedSocketData in net/socket/socket_test_util.h into the mix and simulate Write blockage. After discussion with Antony, we agreed to break up this work into this CL and then a refactor/mock CL, which I'm working on now.
BUG=106802
TEST=none (see above).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114544
Patch Set 1 : Initial #
Total comments: 4
Patch Set 2 : aa's review comments. #
Total comments: 2
Patch Set 3 : Typo found by asargent. #Patch Set 4 : Put back the bracket. #Messages
Total messages: 12 (0 generated)
|