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

Issue 9379002: Move socket API restriction check to browser process (Closed)

Created:
8 years, 10 months ago by Dmitry Polukhin
Modified:
8 years, 10 months ago
Reviewers:
brettw, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, ygorshenin1, yzshen1
Visibility:
Public.

Description

Move socket API restriction check to browser process BUG=112961 TEST=ui_tests --gtest_filter=*TCPSocket* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=122326

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : shell_tests #

Patch Set 4 : nit #

Total comments: 8

Patch Set 5 : use ChromeContentBrowserClient #

Patch Set 6 : move check to Create/Bind #

Patch Set 7 : nit #

Total comments: 4

Patch Set 8 : use OverrideThreadForMessage #

Patch Set 9 : nit #

Patch Set 10 : add error message #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -103 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +29 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 3 chunks +0 lines, -22 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 2 3 4 5 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 3 chunks +34 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 6 chunks +99 lines, -7 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_socket.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper_udp_socket.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc 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 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/mock_content_renderer_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/mock_content_renderer_client.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -10 lines 0 comments Download
M content/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +6 lines, -21 lines 0 comments Download
M content/shell/shell_content_browser_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_content_browser_client.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/shell_content_renderer_client.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/shell_content_renderer_client.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_udp_socket_private_proxy.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/tests/test_tcp_socket_private_disallowed.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_tcp_socket_private_disallowed.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -4 lines 0 comments Download
M ppapi/tests/test_udp_socket_private_disallowed.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_udp_socket_private_disallowed.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Dmitry Polukhin
8 years, 10 months ago (2012-02-10 08:53:53 UTC) #1
Dmitry Polukhin
https://chromiumcodereview.appspot.com/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode17 content/browser/renderer_host/pepper_message_filter.cc:17: #include "chrome/common/chrome_switches.h" It looks like header from chrome/... can't ...
8 years, 10 months ago (2012-02-10 13:24:12 UTC) #2
Dmitry Polukhin
https://chromiumcodereview.appspot.com/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode17 content/browser/renderer_host/pepper_message_filter.cc:17: #include "chrome/common/chrome_switches.h" On 2012/02/10 13:24:12, Dmitry Polukhin wrote: > ...
8 years, 10 months ago (2012-02-10 14:05:44 UTC) #3
jam
http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode17 content/browser/renderer_host/pepper_message_filter.cc:17: #include "chrome/common/chrome_switches.h" On 2012/02/10 14:05:45, Dmitry Polukhin wrote: > ...
8 years, 10 months ago (2012-02-10 18:23:54 UTC) #4
jam
http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode53 content/browser/renderer_host/pepper_message_filter.cc:53: "okddffdblfhhnmhodogpojmfkjmhinfp", // Test SSH Client On 2012/02/10 18:23:54, John ...
8 years, 10 months ago (2012-02-10 18:33:42 UTC) #5
Dmitry Polukhin
http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode53 content/browser/renderer_host/pepper_message_filter.cc:53: "okddffdblfhhnmhodogpojmfkjmhinfp", // Test SSH Client On 2012/02/10 18:23:54, John ...
8 years, 10 months ago (2012-02-13 14:54:35 UTC) #6
jam
On 2012/02/13 14:54:35, Dmitry Polukhin wrote: > http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc > File content/browser/renderer_host/pepper_message_filter.cc (right): > > http://codereview.chromium.org/9379002/diff/3003/content/browser/renderer_host/pepper_message_filter.cc#newcode53 ...
8 years, 10 months ago (2012-02-13 17:12:50 UTC) #7
Dmitry Polukhin
See below. On Mon, Feb 13, 2012 at 9:12 PM, <jam@chromium.org> wrote: > The simplicity ...
8 years, 10 months ago (2012-02-13 17:58:31 UTC) #8
jam
On Mon, Feb 13, 2012 at 9:58 AM, Dmitry Polukhin <dpolukhin@chromium.org>wrote: > See below. > ...
8 years, 10 months ago (2012-02-13 19:25:30 UTC) #9
Dmitry Polukhin
PTAL, I removed explicit synchronization, static var etc. Now I post task to UI thread ...
8 years, 10 months ago (2012-02-14 14:22:21 UTC) #10
jam
On 2012/02/14 14:22:21, Dmitry Polukhin wrote: > PTAL, I removed explicit synchronization, static var etc. ...
8 years, 10 months ago (2012-02-14 16:11:26 UTC) #11
Dmitry Polukhin
PTAL On 2012/02/14 16:11:26, John Abd-El-Malek wrote: > I'm not sure I understand what you ...
8 years, 10 months ago (2012-02-15 10:19:22 UTC) #12
jam
lgtm On 2012/02/15 10:19:22, Dmitry Polukhin wrote: > PTAL > > On 2012/02/14 16:11:26, John ...
8 years, 10 months ago (2012-02-15 16:02:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/9379002/29001
8 years, 10 months ago (2012-02-16 07:15:36 UTC) #14
commit-bot: I haz the power
Presubmit check for 9379002-29001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-16 07:15:47 UTC) #15
brettw
PPAPI LGTM
8 years, 10 months ago (2012-02-16 17:41:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpolukhin@chromium.org/9379002/29001
8 years, 10 months ago (2012-02-16 17:41:16 UTC) #17
commit-bot: I haz the power
8 years, 10 months ago (2012-02-16 19:06:50 UTC) #18
Change committed as 122326

Powered by Google App Engine
This is Rietveld 408576698