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

Issue 10095020: Allow socket API to send binary data. (Closed)

Created:
8 years, 8 months ago by miket_OOO
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

- Changed the data structure being passed around in the socket API from a string to an array of longs. This is a stepping stone to get us to ArrayBuffers. - Changed "message" key to "data" for consistency. BUG=120567 TEST=no new ones, but existing, as updated, still pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132512

Patch Set 1 : Patch Set 1 #

Total comments: 16

Patch Set 2 : Jeremy's judgments. Antonits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -136 lines) Patch
M chrome/browser/extensions/api/api_resource_event_notifier.h View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/api_resource_event_notifier.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.h View 2 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.cc View 1 2 chunks +21 lines, -35 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 4 chunks +48 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket_unittest.cc View 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket_unittest.cc View 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/experimental.socket.idl View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/background.js View 1 6 chunks +62 lines, -60 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
miket_OOO
In particular, please scrutinize the scoped_refptr usage. I think it's correct, but I could use ...
8 years, 8 months ago (2012-04-16 20:15:23 UTC) #1
miket_OOO
I changed reviewers from Peng to Jeremy because this CL will break IRC!
8 years, 8 months ago (2012-04-16 20:21:07 UTC) #2
jeremya
lgtm, can't wait for ArrayBuffers :) http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket.cc File chrome/browser/extensions/api/socket/socket.cc (right): http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket.cc#newcode50 chrome/browser/extensions/api/socket/socket.cc:50: base::Bind(&Socket::OnDataRead, base::Unretained(this), io_buffer)); ...
8 years, 8 months ago (2012-04-16 22:28:26 UTC) #3
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket_api.cc File chrome/browser/extensions/api/socket/socket_api.cc (right): http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket_api.cc#newcode174 chrome/browser/extensions/api/socket/socket_api.cc:174: unsigned char* data_buffer = On 2012/04/16 20:15:23, miket ...
8 years, 8 months ago (2012-04-16 22:51:13 UTC) #4
miket_OOO
Rebuilding, will submit. Thanks. http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket.cc File chrome/browser/extensions/api/socket/socket.cc (right): http://codereview.chromium.org/10095020/diff/2003/chrome/browser/extensions/api/socket/socket.cc#newcode50 chrome/browser/extensions/api/socket/socket.cc:50: base::Bind(&Socket::OnDataRead, base::Unretained(this), io_buffer)); On 2012/04/16 ...
8 years, 8 months ago (2012-04-16 23:15:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10095020/9003
8 years, 8 months ago (2012-04-16 23:56:20 UTC) #6
commit-bot: I haz the power
8 years, 8 months ago (2012-04-17 02:07:49 UTC) #7
Change committed as 132512

Powered by Google App Engine
This is Rietveld 408576698