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

Issue 7745005: Initial work for UDP Pepper API (Closed)

Created:
9 years, 4 months ago by mtilburg
Modified:
8 years, 2 months ago
Visibility:
Public.

Description

Add Pepper API to use UDP author: mtilburg@adobe.com BUG=none TEST=tested with pepper flash

Patch Set 1 #

Patch Set 2 : fix white spaces at end of lines #

Patch Set 3 : more white space and a tab #

Patch Set 4 : remove more tabs and white spaces, fix build #

Patch Set 5 : more white space #

Patch Set 6 : add some error case logic, remove remaining warnings... #

Total comments: 51

Patch Set 7 : changes as a result of initial code review - minus the refactoring of the SocketManagers #

Patch Set 8 : create and use FlashSocketManager for baseclass of FlashTCPSsocketManager and FlashUDPSocketManager #

Total comments: 38

Patch Set 9 : changes addressing the most recent code review #

Patch Set 10 : A few more changes after self-review #

Total comments: 76

Patch Set 11 : more changes from code reviews #

Total comments: 6

Patch Set 12 : change bind_in_progress_ to binded_ check sendto #

Total comments: 44

Patch Set 13 : prevent sendto/recvfrom if not binded, a few more code review changes #

Patch Set 14 : prevent Close from executing more than once #

Total comments: 2

Patch Set 15 : add .idl file for udp socket interface and check in generated .h file #

Total comments: 4

Patch Set 16 : change M15 to M16, add PRIVATE back to ifdef #

Patch Set 17 : add Adobe contributors to the AUTHORS file #

Patch Set 18 : update to latest to resolve conflict in AUTHORS file #

Patch Set 19 : readd names that I mistakenly removed from AUTHORS file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1271 lines, -44 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +362 lines, -43 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
A ppapi/api/private/ppb_flash_udp_socket.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +59 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_flash_udp_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +76 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_udp_socket.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_udp_socket.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +72 lines, -0 lines 0 comments Download
M ppapi/ppapi_cpp.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_id.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +35 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_udp_socket_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_flash_udp_socket_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +390 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_udp_socket_api.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_udp_socket_thunk.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +98 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/thunk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
viettrungluu
Here's a start. Also, note that, confusingly, you have to send a message (a blank ...
9 years, 3 months ago (2011-08-29 19:20:05 UTC) #1
mtilburg
fixed everything except the refactoring of the Socket Manager... which I am working on currently... ...
9 years, 3 months ago (2011-08-30 16:56:14 UTC) #2
mtilburg
refactoring of TCP and UDP socket managers to share code, created base class FlashSocketManager that ...
9 years, 3 months ago (2011-09-06 22:06:57 UTC) #3
yzshen1
Hi, This is the first part of review comments. http://codereview.chromium.org/7745005/diff/14001/ppapi/c/private/ppb_flash_udp_socket.h File ppapi/c/private/ppb_flash_udp_socket.h (right): http://codereview.chromium.org/7745005/diff/14001/ppapi/c/private/ppb_flash_udp_socket.h#newcode19 ppapi/c/private/ppb_flash_udp_socket.h:19: ...
9 years, 3 months ago (2011-09-07 18:00:36 UTC) #4
mtilburg
This should address all the items from the last code review, with the exception of ...
9 years, 3 months ago (2011-09-15 23:13:32 UTC) #5
brettw
Just some comments I noticed. http://codereview.chromium.org/7745005/diff/37004/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/37004/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode36 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:36: IDToSocketMap* g_id_to_socket = NULL; ...
9 years, 3 months ago (2011-09-16 17:50:16 UTC) #6
yzshen1
http://codereview.chromium.org/7745005/diff/37004/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/37004/content/browser/renderer_host/pepper_message_filter.cc#newcode42 content/browser/renderer_host/pepper_message_filter.cc:42: #include "net/udp/udp_socket.h" You probably don't need this include. http://codereview.chromium.org/7745005/diff/37004/content/browser/renderer_host/pepper_message_filter.cc#newcode248 ...
9 years, 3 months ago (2011-09-17 02:10:06 UTC) #7
mtilburg
* change Disconnect to Close * remove family from UDPSocket, since it can be calculated ...
9 years, 3 months ago (2011-09-21 01:46:42 UTC) #8
yzshen1
http://codereview.chromium.org/7745005/diff/37004/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/37004/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode36 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:36: IDToSocketMap* g_id_to_socket = NULL; On 2011/09/21 01:46:43, mtilburg wrote: ...
9 years, 3 months ago (2011-09-21 18:46:01 UTC) #9
mtilburg
* change bind_in_progress_ to binded_ * add check to sendto to make sure it's not ...
9 years, 3 months ago (2011-09-22 13:53:22 UTC) #10
viettrungluu
Sorry, I got distracted. http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc#newcode211 content/browser/renderer_host/pepper_message_filter.cc:211: // Base class for TCP ...
9 years, 3 months ago (2011-09-22 16:45:34 UTC) #11
brettw
I think it's probably a good idea to land the global tracking thing later as ...
9 years, 3 months ago (2011-09-22 20:03:30 UTC) #12
yzshen1
http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode209 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:209: if (!binded_) It is not right to use binded_ ...
9 years, 3 months ago (2011-09-22 20:07:04 UTC) #13
yzshen1
http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc#newcode870 content/browser/renderer_host/pepper_message_filter.cc:870: void PepperMessageFilter::FlashUDPSocketManager::OnMsgBind( On 2011/09/22 16:45:34, viettrungluu wrote: > Why ...
9 years, 3 months ago (2011-09-22 20:14:27 UTC) #14
mtilburg
http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc#newcode211 content/browser/renderer_host/pepper_message_filter.cc:211: // Base class for TCP and UDP socket managers ...
9 years, 3 months ago (2011-09-22 23:44:34 UTC) #15
yzshen1
http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc#newcode251 content/browser/renderer_host/pepper_message_filter.cc:251: if (sockets_.size() >= std::numeric_limits<uint32>::max()) { This is a good ...
9 years, 3 months ago (2011-09-23 00:00:44 UTC) #16
mtilburg
http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/7745005/diff/51001/content/browser/renderer_host/pepper_message_filter.cc#newcode1257 content/browser/renderer_host/pepper_message_filter.cc:1257: } On 2011/09/22 23:44:34, mtilburg wrote: > On 2011/09/22 ...
9 years, 3 months ago (2011-09-23 13:39:24 UTC) #17
mtilburg
http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode58 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:58: class FlashUDPSocket : public PPB_Flash_UDPSocket_API, On 2011/09/22 20:03:30, brettw ...
9 years, 3 months ago (2011-09-23 17:30:27 UTC) #18
yzshen1
http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode209 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:209: if (!binded_) On 2011/09/23 17:30:28, mtilburg wrote: > I've ...
9 years, 3 months ago (2011-09-23 18:06:57 UTC) #19
mtilburg
http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/51001/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode209 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:209: if (!binded_) Okay, I added closed_, and check it ...
9 years, 3 months ago (2011-09-23 18:36:55 UTC) #20
brettw
I'm happy with this from a high level, so once Yuzhu is happy I think ...
9 years, 3 months ago (2011-09-23 19:08:22 UTC) #21
mtilburg
I've added the .idl file for udp socket... I still have to move it to ...
9 years, 2 months ago (2011-09-26 16:23:12 UTC) #22
yzshen1
LGTM Thanks! You could use the commit queue to submit this change: http://www.chromium.org/developers/testing/commit-queue http://codereview.chromium.org/7745005/diff/61027/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ...
9 years, 2 months ago (2011-09-26 17:03:27 UTC) #23
mtilburg
http://codereview.chromium.org/7745005/diff/61027/ppapi/proxy/ppb_flash_udp_socket_proxy.cc File ppapi/proxy/ppb_flash_udp_socket_proxy.cc (right): http://codereview.chromium.org/7745005/diff/61027/ppapi/proxy/ppb_flash_udp_socket_proxy.cc#newcode212 ppapi/proxy/ppb_flash_udp_socket_proxy.cc:212: if( closed_ ) On 2011/09/26 17:03:27, yzshen1 wrote: > ...
9 years, 2 months ago (2011-09-26 17:16:18 UTC) #24
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/mtilburg@gmail.com/7745005/72001
9 years, 2 months ago (2011-09-26 17:56:16 UTC) #25
commit-bot: I haz the power
Presubmit check for 7745005-72001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-09-26 17:56:30 UTC) #26
brettw
LGTM, sorry it's complaining about my owners part.
9 years, 2 months ago (2011-09-26 17:57:46 UTC) #27
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/mtilburg@gmail.com/7745005/72001
9 years, 2 months ago (2011-09-26 17:58:29 UTC) #28
commit-bot: I haz the power
Presubmit check for 7745005-72001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-09-26 17:58:43 UTC) #29
brettw
We should add Adobe to the src/AUTHORS file since you guys have signed the CLA ...
9 years, 2 months ago (2011-09-26 18:11:33 UTC) #30
mtilburg
I spoke with our Legal, our agreement only includes these four engineers, and they do ...
9 years, 2 months ago (2011-09-26 19:13:26 UTC) #31
brettw
lgtm LGTM
9 years, 2 months ago (2011-09-26 19:23:20 UTC) #32
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/mtilburg@gmail.com/7745005/72003
9 years, 2 months ago (2011-09-26 19:23:33 UTC) #33
commit-bot: I haz the power
Can't apply patch for file AUTHORS. While running patch -p1 --forward --force; patching file AUTHORS ...
9 years, 2 months ago (2011-09-26 19:23:43 UTC) #34
M-A Ruel
On 2011/09/26 19:23:43, I haz the power (commit-bot) wrote: > Can't apply patch for file ...
9 years, 2 months ago (2011-09-26 19:24:50 UTC) #35
mtilburg
updated AUTHORS file to resolve conflicts
9 years, 2 months ago (2011-09-26 19:39:22 UTC) #36
M-A Ruel
9 years, 2 months ago (2011-09-26 19:40:31 UTC) #37
On 2011/09/26 19:24:50, Marc-Antoine Ruel wrote:
> Please sync past revision 102622 first.

(But even with that, the patch will fail since the email address you used to
upload it not the one listed in AUTHORS. The check is strict about that.

Choices are:
- You upload a new issue with a Google credential with the address specified in
AUTHORS. You can create a Google account is an arbitrary email address as long
as you are not using Google Apps. Since you are using git, it's "git cl issue 0;
rm ~/codereview_upload_cookies; git cl upload".
- You let Brett commit it on your behalf.

Powered by Google App Engine
This is Rietveld 408576698