Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 8896013: Implement onEvent callback framework for UDP (Closed)

Created:
9 years ago by miket_OOO
Modified:
9 years ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Wire 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -43 lines) Patch
M chrome/browser/extensions/api/socket/socket_api.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket_api_controller.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket_api_controller.cc View 7 chunks +79 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 2 chunks +28 lines, -17 lines 0 comments Download
M chrome/renderer/extensions/schema_generated_bindings.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 2 3 4 chunks +46 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
miket_OOO
http://codereview.chromium.org/8896013/diff/4001/chrome/renderer/resources/extensions/schema_generated_bindings.js File chrome/renderer/resources/extensions/schema_generated_bindings.js (right): http://codereview.chromium.org/8896013/diff/4001/chrome/renderer/resources/extensions/schema_generated_bindings.js#newcode27 chrome/renderer/resources/extensions/schema_generated_bindings.js:27: native function SendResponseAck(requestId); I alphabetized this list of functions ...
9 years ago (2011-12-13 22:44:49 UTC) #1
Aaron Boodman
lgtm http://codereview.chromium.org/8896013/diff/4001/chrome/renderer/resources/extensions/schema_generated_bindings.js File chrome/renderer/resources/extensions/schema_generated_bindings.js (right): http://codereview.chromium.org/8896013/diff/4001/chrome/renderer/resources/extensions/schema_generated_bindings.js#newcode27 chrome/renderer/resources/extensions/schema_generated_bindings.js:27: native function SendResponseAck(requestId); On 2011/12/13 22:44:50, miket wrote: ...
9 years ago (2011-12-14 00:28:23 UTC) #2
asargent_no_longer_on_chrome
LGTM http://codereview.chromium.org/8896013/diff/8001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8896013/diff/8001/chrome/common/extensions/api/extension_api.json#newcode8933 chrome/common/extensions/api/extension_api.json:8933: "description": "writeComplete A 'data' event represents data received ...
9 years ago (2011-12-14 17:36:17 UTC) #3
miket_OOO
Fixed typo. I now recall that I saw a trampoline roll by in the middle ...
9 years ago (2011-12-14 17:58:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8896013/14001
9 years ago (2011-12-14 18:26:06 UTC) #5
commit-bot: I haz the power
Can't process patch for file chrome/renderer/extensions/schema_generated_bindings.cc. File's status is None, patchset upload is incomplete.
9 years ago (2011-12-14 18:26:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8896013/9009
9 years ago (2011-12-14 18:38:37 UTC) #7
commit-bot: I haz the power
Try job failure for 8896013-9009 (retry) on mac_rel for steps "unit_tests, browser_tests, ui_tests". It's a ...
9 years ago (2011-12-14 22:27:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8896013/9009
9 years ago (2011-12-14 22:53:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/8896013/8012
9 years ago (2011-12-14 23:16:42 UTC) #10
miket_OOO
> chrome/renderer/resources/extensions/schema_generated_bindings.js:609: // Safe > to ignore. > That is almost never true :). How ...
9 years ago (2011-12-15 00:08:38 UTC) #11
commit-bot: I haz the power
9 years ago (2011-12-15 00:38:48 UTC) #12
Change committed as 114544

Powered by Google App Engine
This is Rietveld 408576698