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

Issue 10993078: Use extensions socket permission for TCP/UDP socket APIs in Pepper (Closed)

Created:
8 years, 2 months ago by Dmitry Polukhin
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Use extensions socket permission for TCP/UDP socket APIs in Pepper This CL is first step in removing whitelist of extensions. It makes permission check same as extensions do. BUG=124311 TEST=browser_tests for TCP/UDP Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165376 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165634

Patch Set 1 #

Total comments: 9

Patch Set 2 : nit #

Patch Set 3 : nit #

Total comments: 2

Patch Set 4 : nit #

Total comments: 5

Patch Set 5 : move SocketPermissionRequest to separate header #

Patch Set 6 : nit #

Patch Set 7 : remove duplication #

Total comments: 6

Patch Set 8 : moved new header to content/public/common #

Patch Set 9 : use SocketPermissionRequest in SocketPermissionData #

Patch Set 10 : nit #

Patch Set 11 : rebase #

Total comments: 4

Patch Set 12 : comments resovled #

Patch Set 13 : fixed Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -205 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 3 4 5 6 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -10 lines 0 comments Download
M chrome/common/extensions/permissions/socket_permission.h View 1 2 3 4 5 6 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/common/extensions/permissions/socket_permission.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/permissions/socket_permission_data.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/common/extensions/permissions/socket_permission_data.cc View 1 2 3 4 5 6 7 8 9 13 chunks +56 lines, -54 lines 0 comments Download
M chrome/common/extensions/permissions/socket_permission_unittest.cc View 1 2 3 4 5 6 2 chunks +43 lines, -42 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -8 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +53 lines, -38 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_udp_socket.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A content/public/common/socket_permission_request.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_udp_socket_private_proxy.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/private/net_address_private_impl.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/shared_impl/private/net_address_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Dmitry Polukhin
8 years, 2 months ago (2012-09-28 13:07:25 UTC) #1
ygorshenin1
LGTM with nits. https://codereview.chromium.org/10993078/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/10993078/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1749 chrome/browser/chrome_content_browser_client.cc:1749: &extension_params)) nit: delete single space before ...
8 years, 2 months ago (2012-09-28 14:43:33 UTC) #2
Dmitry Polukhin
+ Brett for OWNER review http://codereview.chromium.org/10993078/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10993078/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1749 chrome/browser/chrome_content_browser_client.cc:1749: &extension_params)) On 2012/09/28 14:43:34, ...
8 years, 2 months ago (2012-10-01 11:00:24 UTC) #3
miket_OOO
lgtm http://codereview.chromium.org/10993078/diff/13001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10993078/diff/13001/chrome/browser/chrome_content_browser_client.cc#newcode1748 chrome/browser/chrome_content_browser_client.cc:1748: } This block seems like it could be ...
8 years, 2 months ago (2012-10-05 18:46:01 UTC) #4
Dmitry Polukhin
Brett, please take a look as owner. http://codereview.chromium.org/10993078/diff/13001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/10993078/diff/13001/chrome/browser/chrome_content_browser_client.cc#newcode1748 chrome/browser/chrome_content_browser_client.cc:1748: } On ...
8 years, 2 months ago (2012-10-08 09:50:35 UTC) #5
brettw
John should review nontrivial content API changes. I'm wondering what the long-term plan for this ...
8 years, 2 months ago (2012-10-09 21:44:54 UTC) #6
jam
https://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h#newcode86 content/public/browser/content_browser_client.h:86: struct SocketPermissionParam { please move this to a separate ...
8 years, 2 months ago (2012-10-10 20:48:30 UTC) #7
Dmitry Polukhin
Sorry for delay with code review - was busy with M23 blocker issues. https://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h File ...
8 years, 2 months ago (2012-10-17 09:25:54 UTC) #8
jam
https://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h#newcode86 content/public/browser/content_browser_client.h:86: struct SocketPermissionParam { On 2012/10/17 09:25:54, Dmitry Polukhin wrote: ...
8 years, 2 months ago (2012-10-17 15:22:41 UTC) #9
Dmitry Polukhin
I removed duplication but it violates checkdeps rules. http://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): http://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h#newcode86 content/public/browser/content_browser_client.h:86: struct ...
8 years, 2 months ago (2012-10-18 08:57:38 UTC) #10
jam
http://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): http://codereview.chromium.org/10993078/diff/24001/content/public/browser/content_browser_client.h#newcode86 content/public/browser/content_browser_client.h:86: struct SocketPermissionParam { On 2012/10/18 08:57:38, Dmitry Polukhin wrote: ...
8 years, 2 months ago (2012-10-18 15:37:15 UTC) #11
dpolukhin
http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h File chrome/common/extensions/permissions/socket_permission_data.h (right): http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h#newcode56 chrome/common/extensions/permissions/socket_permission_data.h:56: content::SocketPermissionRequest::OperationType type_; On 2012/10/18 15:37:15, John Abd-El-Malek wrote: > ...
8 years, 2 months ago (2012-10-18 18:01:00 UTC) #12
jam
http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h File chrome/common/extensions/permissions/socket_permission_data.h (right): http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h#newcode56 chrome/common/extensions/permissions/socket_permission_data.h:56: content::SocketPermissionRequest::OperationType type_; On 2012/10/18 18:01:00, dpolukhin wrote: > On ...
8 years, 2 months ago (2012-10-18 18:17:06 UTC) #13
dpolukhin
http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h File chrome/common/extensions/permissions/socket_permission_data.h (right): http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h#newcode56 chrome/common/extensions/permissions/socket_permission_data.h:56: content::SocketPermissionRequest::OperationType type_; On 2012/10/18 18:17:06, John Abd-El-Malek wrote: > ...
8 years, 2 months ago (2012-10-18 18:30:34 UTC) #14
jam
http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h File chrome/common/extensions/permissions/socket_permission_data.h (right): http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h#newcode56 chrome/common/extensions/permissions/socket_permission_data.h:56: content::SocketPermissionRequest::OperationType type_; On 2012/10/18 18:30:34, dpolukhin wrote: > On ...
8 years, 2 months ago (2012-10-18 21:21:34 UTC) #15
Dmitry Polukhin
http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h File chrome/common/extensions/permissions/socket_permission_data.h (right): http://codereview.chromium.org/10993078/diff/37001/chrome/common/extensions/permissions/socket_permission_data.h#newcode56 chrome/common/extensions/permissions/socket_permission_data.h:56: content::SocketPermissionRequest::OperationType type_; On 2012/10/18 21:21:34, John Abd-El-Malek wrote: > ...
8 years, 2 months ago (2012-10-19 09:23:59 UTC) #16
jam
lgtm
8 years, 2 months ago (2012-10-19 16:19:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/10993078/37002
8 years, 2 months ago (2012-10-19 18:00:12 UTC) #18
commit-bot: I haz the power
Presubmit check for 10993078-37002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-19 18:00:27 UTC) #19
dpolukhin
Brett, friendly ping, I need OWNER review in ppapi/, could you please take a look?
8 years, 1 month ago (2012-10-29 04:14:14 UTC) #20
brettw
ppapi lgtm. sorry for the delay. http://codereview.chromium.org/10993078/diff/49001/ppapi/shared_impl/private/net_address_private_impl.cc File ppapi/shared_impl/private/net_address_private_impl.cc (right): http://codereview.chromium.org/10993078/diff/49001/ppapi/shared_impl/private/net_address_private_impl.cc#newcode285 ppapi/shared_impl/private/net_address_private_impl.cc:285: !!include_port); Please use ...
8 years, 1 month ago (2012-10-31 23:34:23 UTC) #21
Dmitry Polukhin
http://codereview.chromium.org/10993078/diff/49001/ppapi/shared_impl/private/net_address_private_impl.cc File ppapi/shared_impl/private/net_address_private_impl.cc (right): http://codereview.chromium.org/10993078/diff/49001/ppapi/shared_impl/private/net_address_private_impl.cc#newcode285 ppapi/shared_impl/private/net_address_private_impl.cc:285: !!include_port); On 2012/10/31 23:34:23, brettw wrote: > Please use ...
8 years, 1 month ago (2012-11-01 07:59:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/10993078/49002
8 years, 1 month ago (2012-11-01 08:01:53 UTC) #23
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years, 1 month ago (2012-11-01 09:33:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/10993078/49002
8 years, 1 month ago (2012-11-01 09:38:50 UTC) #25
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 1 month ago (2012-11-01 11:03:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/10993078/49002
8 years, 1 month ago (2012-11-01 13:56:43 UTC) #27
commit-bot: I haz the power
Change committed as 165376
8 years, 1 month ago (2012-11-01 14:46:12 UTC) #28
Dmitry Polukhin
+benm@ for OWNER review in android_webview/
8 years, 1 month ago (2012-11-01 15:23:47 UTC) #29
benm (inactive)
8 years, 1 month ago (2012-11-01 15:37:45 UTC) #30
lgtm

Powered by Google App Engine
This is Rietveld 408576698