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

Issue 11411357: PPB_HostResolver_Private is switched to the new Pepper proxy. (Closed)

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

Description

PPB_HostResolver_Private is switched to the new Pepper proxy. Blocked on https://chromiumcodereview.appspot.com/11434042. BUG=163861 TEST=browser_tests:*HostResolverPrivate* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181908

Patch Set 1 #

Patch Set 2 : Deleted CreateNetAddressListFromAddressList #

Patch Set 3 : Sync. #

Patch Set 4 : Fix. #

Patch Set 5 : Deleted in-process support of PPB_HostResolver_Private #

Patch Set 6 : Fixed MockPluginDelegate. #

Total comments: 25

Patch Set 7 : Added permission check for HostResolverPrivate. #

Patch Set 8 : Fixed comment. #

Patch Set 9 : Fix, sync. #

Patch Set 10 : Sync. #

Patch Set 11 : Sync. #

Patch Set 12 : s/SendReply/SendResolveReply, s/SendError/SendResolveError #

Total comments: 24

Patch Set 13 : Sync, fix. #

Patch Set 14 : Fixed PepperHostResolverPrivateMessageFilter's destructor. #

Patch Set 15 : Fixed PepperHostResolverPrivateMessageFilter destructor. #

Total comments: 8

Patch Set 16 : Sync, fix. #

Patch Set 17 : Added comment to weak_ref_. #

Total comments: 2

Patch Set 18 : Sync, fix. #

Total comments: 4

Patch Set 19 : Fix, sync. #

Patch Set 20 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+549 lines, -758 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +11 lines, -6 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +86 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +217 lines, -0 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 11 12 13 14 15 6 chunks +1 line, -29 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 11 12 13 7 chunks +5 lines, -142 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_socket_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +0 lines, -17 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +0 lines, -54 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 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 +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + ppapi/proxy/host_resolver_private_resource.h View 1 2 3 4 5 6 3 chunks +24 lines, -27 lines 0 comments Download
A ppapi/proxy/host_resolver_private_resource.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +97 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 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 18 19 5 chunks +9 lines, -17 lines 0 comments Download
D ppapi/proxy/ppb_host_resolver_private_proxy.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ppapi/proxy/ppb_host_resolver_private_proxy.cc View 1 chunk +0 lines, -122 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
D ppapi/shared_impl/private/ppb_host_resolver_shared.h View 1 2 3 4 5 6 1 chunk +0 lines, -76 lines 0 comments Download
D ppapi/shared_impl/private/ppb_host_resolver_shared.cc View 1 2 3 4 5 6 1 chunk +0 lines, -99 lines 0 comments Download
M ppapi/tests/all_c_includes.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/tests/test_host_resolver_private_disallowed.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A ppapi/tests/test_host_resolver_private_disallowed.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +53 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_no_permissions.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -14 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -12 lines 0 comments Download
D webkit/plugins/ppapi/ppb_host_resolver_private_impl.h View 1 2 3 4 1 chunk +0 lines, -29 lines 0 comments Download
D webkit/plugins/ppapi/ppb_host_resolver_private_impl.cc View 1 2 3 4 1 chunk +0 lines, -38 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 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 11 12 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
ygorshenin1
8 years ago (2012-12-04 14:12:58 UTC) #1
brettw
Yuzhu, Raymes, can one of you take this review? Please don't both do it at ...
8 years ago (2012-12-06 00:05:37 UTC) #2
yzshen1
I could do it. On Wed, Dec 5, 2012 at 4:05 PM, <brettw@chromium.org> wrote: > ...
8 years ago (2012-12-06 00:13:38 UTC) #3
yzshen1
A high-level questions: why do you need to keep the old implementation for in-process mode? ...
8 years ago (2012-12-06 21:45:08 UTC) #4
brettw
I think when we first discussed this, the proxies hadn't really been switched and we ...
8 years ago (2012-12-06 22:20:44 UTC) #5
ygorshenin1
friendly ping
8 years ago (2012-12-20 08:55:49 UTC) #6
yzshen1
The first round of review comments. Haven't reviewed browser_ppapi_host/*_resource/*_host in details. I will do that ...
8 years ago (2012-12-20 20:00:20 UTC) #7
ygorshenin1
PTAL Added HostResolverPrivate permission check on host side and corresponding browser test. Still thinking how ...
8 years ago (2012-12-21 12:53:26 UTC) #8
ygorshenin1
PTAL. I merged PPB_UDPSocket_Private to UDPSocketPrivateResource and PepperUDPSocketPrivateShared to PepperUDPSocketPrivateResource (to be consistent with https://codereview.chromium.org/11411357/).
7 years, 12 months ago (2012-12-24 14:41:06 UTC) #9
ygorshenin1
Sorry for this irrelevant comment. On 2012/12/24 14:41:06, ygorshenin1 wrote: > PTAL. > > I ...
7 years, 12 months ago (2012-12-24 14:42:19 UTC) #10
ygorshenin1
PTAL
7 years, 11 months ago (2013-01-21 17:12:12 UTC) #11
ygorshenin1
friendly ping
7 years, 11 months ago (2013-01-22 10:41:12 UTC) #12
yzshen1
Haven't reviewed pepper_socket_utils.h. I will wait till you have considered the suggestion ofusing ResourceMessageFilter. (Please ...
7 years, 11 months ago (2013-01-24 18:45:03 UTC) #13
ygorshenin1
Yuzhu, sorry for the delay in response. PTAL. https://codereview.chromium.org/11411357/diff/66002/content/browser/renderer_host/pepper/pepper_host_resolver_private_host.cc File content/browser/renderer_host/pepper/pepper_host_resolver_private_host.cc (right): https://codereview.chromium.org/11411357/diff/66002/content/browser/renderer_host/pepper/pepper_host_resolver_private_host.cc#newcode130 content/browser/renderer_host/pepper/pepper_host_resolver_private_host.cc:130: host_resolver_is_ready_ ...
7 years, 10 months ago (2013-02-05 12:45:31 UTC) #14
yzshen1
only a few more nits. Thanks for the message filter change. https://codereview.chromium.org/11411357/diff/85001/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc File content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc (right): ...
7 years, 10 months ago (2013-02-07 22:28:21 UTC) #15
ygorshenin1
PTAL https://codereview.chromium.org/11411357/diff/85001/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc File content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc (right): https://codereview.chromium.org/11411357/diff/85001/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc#newcode82 content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.cc:82: : host_(host), On 2013/02/07 22:28:21, yzshen1 wrote: > ...
7 years, 10 months ago (2013-02-08 08:56:40 UTC) #16
yzshen1
https://codereview.chromium.org/11411357/diff/77079/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h File content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h (right): https://codereview.chromium.org/11411357/diff/77079/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h#newcode86 content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h:86: base::WeakPtr<PepperHostResolverPrivateMessageFilter> weak_ref_; Why don't you get a weak ptr ...
7 years, 10 months ago (2013-02-08 18:41:30 UTC) #17
ygorshenin1
PTAL https://codereview.chromium.org/11411357/diff/77079/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h File content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h (right): https://codereview.chromium.org/11411357/diff/77079/content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h#newcode86 content/browser/renderer_host/pepper/pepper_host_resolver_private_message_filter.h:86: base::WeakPtr<PepperHostResolverPrivateMessageFilter> weak_ref_; I're right: as this class is ...
7 years, 10 months ago (2013-02-11 05:53:48 UTC) #18
yzshen1
LGTM Thanks!
7 years, 10 months ago (2013-02-11 19:10:45 UTC) #19
ygorshenin1
谢谢 Yuzhu!
7 years, 10 months ago (2013-02-11 19:29:42 UTC) #20
ygorshenin1
+ Justin Justin, could you please take a look at ppapi/proxy/ppapi_messages.h Brett, could you please ...
7 years, 10 months ago (2013-02-11 19:32:44 UTC) #21
brettw
LGTM rubberstamp, just noted a few minor nits. https://codereview.chromium.org/11411357/diff/83013/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc File content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc (right): https://codereview.chromium.org/11411357/diff/83013/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc#newcode83 content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc:83: if ...
7 years, 10 months ago (2013-02-11 20:46:58 UTC) #22
ygorshenin1
PTAL https://codereview.chromium.org/11411357/diff/83013/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc File content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc (right): https://codereview.chromium.org/11411357/diff/83013/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc#newcode83 content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc:83: if (message.type() == PpapiHostMsg_HostResolverPrivate_Create::ID) { On 2013/02/11 20:46:58, ...
7 years, 10 months ago (2013-02-11 21:28:53 UTC) #23
jschuh
This looks like it's just refactoring to use the proxy without changing the attack surface ...
7 years, 10 months ago (2013-02-12 01:26:06 UTC) #24
ygorshenin1
Many thanks!
7 years, 10 months ago (2013-02-12 08:01:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/11411357/86014
7 years, 10 months ago (2013-02-12 08:02:54 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98593
7 years, 10 months ago (2013-02-12 09:01:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/11411357/86014
7 years, 10 months ago (2013-02-12 10:12:09 UTC) #28
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98633
7 years, 10 months ago (2013-02-12 11:12:26 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/11411357/86014
7 years, 10 months ago (2013-02-12 11:43:18 UTC) #30
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 12:50:50 UTC) #31
Message was sent while issue was closed.
Change committed as 181908

Powered by Google App Engine
This is Rietveld 408576698