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

Issue 8743017: Real (but naive) UDP socket sending. (Closed)

Created:
9 years ago by miket_OOO
Modified:
9 years ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr., jstritar, asargent_no_longer_on_chrome, Dmitry Polukhin
Visibility:
Public.

Description

Changed some API names. Wrapped existing UDPClientSocket. Added one unit test for controller. The socket API itself isn't tested for two reasons: (1) this is an interim checkin, where Part 2 will add UDP receiving, and that will likely involve some API changes, so I didn't bother constructing a whole extension built on a temporary API; and (2) the wrapper itself is so thin around the existing UDPClientSocket API that a unit test of the wrapper wouldn't accomplish much. BUG=none TEST=see above. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113069

Patch Set 1 : Initial. #

Total comments: 25

Patch Set 2 : Changes after review. #

Total comments: 1

Patch Set 3 : Post-try-server fixes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+752 lines, -331 lines) Patch
A chrome/browser/extensions/api/socket/socket_api.h View 1 1 chunk +106 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/socket/socket_api.cc View 1 1 chunk +207 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/socket/socket_api_controller.h View 1 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/socket/socket_api_controller.cc View 1 2 1 chunk +181 lines, -0 lines 1 comment Download
A chrome/browser/extensions/api/socket/socket_api_controller_unittest.cc View 1 1 chunk +51 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/socket/socket_apitest.cc View 1 2 4 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/socket_api.h View 1 1 chunk +0 lines, -67 lines 0 comments Download
M chrome/browser/extensions/socket_api.cc View 1 1 chunk +0 lines, -151 lines 0 comments Download
M chrome/browser/extensions/socket_apitest.cc View 1 1 chunk +0 lines, -68 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 3 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 4 chunks +27 lines, -22 lines 0 comments Download
M chrome/common/extensions/docs/experimental.socket.html View 2 chunks +70 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/background.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
miket_OOO
9 years ago (2011-12-01 20:00:22 UTC) #1
Mihai Parparita -not on Chrome
http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.cc File chrome/browser/extensions/socket_api.cc (right): http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.cc#newcode9 chrome/browser/extensions/socket_api.cc:9: #include "chrome/browser/extensions/socket_api_constants.h" Per Aaron separate constants.h/.cc files are no ...
9 years ago (2011-12-01 23:39:32 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.h File chrome/browser/extensions/socket_api.h (right): http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.h#newcode5 chrome/browser/extensions/socket_api.h:5: #ifndef CHROME_BROWSER_EXTENSIONS_SOCKET_API_H_ I have been trying to figure out ...
9 years ago (2011-12-02 06:06:12 UTC) #3
miket_OOO
Changes made, comments submitted, tests running. Please re-review. http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.cc File chrome/browser/extensions/socket_api.cc (right): http://codereview.chromium.org/8743017/diff/5001/chrome/browser/extensions/socket_api.cc#newcode29 chrome/browser/extensions/socket_api.cc:29: if ...
9 years ago (2011-12-02 21:06:36 UTC) #4
Aaron Boodman
LGTM On 2011/12/02 21:06:36, miket wrote: > It's attractive to have Create/Destroy > be symmetric ...
9 years ago (2011-12-03 00:07:23 UTC) #5
miket_OOO
> But if there's no explicit Destroy... Ah, you meant ALL your comments to be ...
9 years ago (2011-12-03 00:17:20 UTC) #6
Aaron Boodman
http://codereview.chromium.org/8743017/diff/8019/chrome/browser/extensions/api/OWNERS File chrome/browser/extensions/api/OWNERS (right): http://codereview.chromium.org/8743017/diff/8019/chrome/browser/extensions/api/OWNERS#newcode2 chrome/browser/extensions/api/OWNERS:2: aa@chromium.org Now that I see this, I guess it ...
9 years ago (2011-12-03 00:17:37 UTC) #7
miket_OOO
> Nevermind, you can remove this. Teams will probably dive deep on specific APIs, but ...
9 years ago (2011-12-03 00:42:49 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/8743017/20003
9 years ago (2011-12-05 22:12:23 UTC) #9
Mihai Parparita -not on Chrome
(Belated) LGTM, feel free to fix the nit in a follow-up CL. http://codereview.chromium.org/8743017/diff/20003/chrome/browser/extensions/api/socket/socket_api_controller.cc File chrome/browser/extensions/api/socket/socket_api_controller.cc ...
9 years ago (2011-12-05 22:43:33 UTC) #10
miket_OOO
> Nit: explicit should no longer be needed. Good catch, thanks. Trybots are green so ...
9 years ago (2011-12-05 22:47:11 UTC) #11
commit-bot: I haz the power
Change committed as 113069
9 years ago (2011-12-06 00:15:41 UTC) #12
miket_OOO
9 years ago (2011-12-06 22:03:53 UTC) #13
> (Belated) LGTM, feel free to fix the nit in a follow-up CL.
>
> chrome/browser/extensions/api/socket/socket_api_controller.cc:25: explicit
> Socket(const Profile* profile, const std::string& src_extension_id,
> Nit: explicit should no longer be needed.

This fix will land in http://codereview.chromium.org/8819029.

Powered by Google App Engine
This is Rietveld 408576698