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

Issue 9455092: HostResolver is exposed to plugin. (Closed)

Created:
8 years, 10 months ago by ygorshenin1
Modified:
8 years, 9 months ago
CC:
chromium-reviews, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, Dmitry Polukhin
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

HostResolver is exposed to plugin. BUG=114225 TEST=UI test TestHostResolverPrivate Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126813

Patch Set 1 #

Patch Set 2 : Fixed indent. #

Patch Set 3 : Fixed MockPluginDelegate. #

Patch Set 4 : Fixed PP_Var initialization. #

Patch Set 5 : Added shared declaration of GetPPB_HostResolver_Private_0_1_Thunk. #

Total comments: 24

Patch Set 6 : Fixed issues. #

Patch Set 7 : CreateNetworkListFromAddrInfo marked as shared. #

Total comments: 10

Patch Set 8 : Sync, added out-of-process support. #

Total comments: 1

Patch Set 9 : Fixed MockPluginDelegate. #

Patch Set 10 : s/class HostPortPair/struct HostPortPair. #

Total comments: 10

Patch Set 11 : Sync, fixed issues. #

Patch Set 12 : Change in PPB_HostResolver_Private interface. #

Patch Set 13 : Fixed PPB_HostResolver_Private: |addr| arg in GetNetAddress can't be NULL. #

Total comments: 4

Patch Set 14 : Sync, fixed issues. #

Patch Set 15 : Sync, test uses local host-port now. #

Patch Set 16 : Sync. #

Patch Set 17 : Sync. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1473 lines, -68 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper_lookup_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +60 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 6 chunks +39 lines, -7 lines 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 13 14 10 chunks +144 lines, -54 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 1 chunk +1 line, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 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 13 14 15 16 4 chunks +17 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 11 12 13 14 15 16 5 chunks +57 lines, -1 line 0 comments Download
A ppapi/api/private/ppb_host_resolver_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +79 lines, -0 lines 0 comments Download
A ppapi/c/private/ppb_host_resolver_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +118 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 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 +1 line, -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 9 chunks +33 lines, -4 lines 0 comments Download
A ppapi/proxy/ppb_host_resolver_private_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +43 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_host_resolver_private_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +123 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_host_resolver_shared.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +83 lines, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_host_resolver_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +118 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.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.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +62 lines, -0 lines 0 comments Download
A ppapi/tests/test_host_resolver_private.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +238 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_host_resolver_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +31 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_host_resolver_private_thunk.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +81 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/thunk.h View 2 chunks +3 lines, -0 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 16 1 chunk +2 lines, -0 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 13 14 15 16 1 chunk +8 lines, -2 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 13 14 15 16 1 chunk +14 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +13 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_host_resolver_private_impl.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 2 comments Download
A webkit/plugins/ppapi/ppb_host_resolver_private_impl.cc View 1 2 3 4 5 6 7 1 chunk +38 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 11 12 13 14 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 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
ygorshenin1
8 years, 10 months ago (2012-02-27 17:07:28 UTC) #1
jam
you listed 4 reviewers. can you specify which parts they should be looking at?
8 years, 10 months ago (2012-02-27 21:47:40 UTC) #2
ygorshenin1
On 2012/02/27 21:47:40, John Abd-El-Malek wrote: > you listed 4 reviewers. can you specify which ...
8 years, 9 months ago (2012-02-28 08:14:35 UTC) #3
yzshen1
First part of comments... http://codereview.chromium.org/9455092/diff/2075/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9455092/diff/2075/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode60 content/renderer/pepper/pepper_plugin_delegate_impl.cc:60: // #include "ppapi/c/private/ppb_host_resolver_private.h" Remove it ...
8 years, 9 months ago (2012-02-28 08:28:59 UTC) #4
ygorshenin1
PTAL http://codereview.chromium.org/9455092/diff/2075/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9455092/diff/2075/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode60 content/renderer/pepper/pepper_plugin_delegate_impl.cc:60: // #include "ppapi/c/private/ppb_host_resolver_private.h" On 2012/02/28 08:29:00, yzshen1 wrote: ...
8 years, 9 months ago (2012-02-28 12:09:46 UTC) #5
jam
On 2012/02/28 08:14:35, ygorshenin1 wrote: > On 2012/02/27 21:47:40, John Abd-El-Malek wrote: > > you ...
8 years, 9 months ago (2012-02-28 16:07:13 UTC) #6
brettw
You didn't register your interface for the proxy so it won't appear as a supported ...
8 years, 9 months ago (2012-02-28 17:02:50 UTC) #7
sky
http://codereview.chromium.org/9455092/diff/19047/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9455092/diff/19047/chrome/test/ui/ppapi_uitest.cc#newcode416 chrome/test/ui/ppapi_uitest.cc:416: TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_HostResolverPrivate_ResolveIPV6) How come you're checking in a disabled test?
8 years, 9 months ago (2012-02-28 20:39:29 UTC) #8
ygorshenin1
Thanks, PTAL. http://codereview.chromium.org/9455092/diff/19047/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9455092/diff/19047/chrome/test/ui/ppapi_uitest.cc#newcode416 chrome/test/ui/ppapi_uitest.cc:416: TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_HostResolverPrivate_ResolveIPV6) On 2012/02/28 20:39:29, sky wrote: > ...
8 years, 9 months ago (2012-02-29 14:02:36 UTC) #9
ygorshenin1
http://codereview.chromium.org/9455092/diff/25001/ppapi/shared_impl/private/ppb_host_resolver_shared.h File ppapi/shared_impl/private/ppb_host_resolver_shared.h (right): http://codereview.chromium.org/9455092/diff/25001/ppapi/shared_impl/private/ppb_host_resolver_shared.h#newcode27 ppapi/shared_impl/private/ppb_host_resolver_shared.h:27: struct HostPortPair { I added this class to combine ...
8 years, 9 months ago (2012-02-29 14:06:18 UTC) #10
sky
chrome/test LGTM
8 years, 9 months ago (2012-02-29 16:08:42 UTC) #11
yzshen1
http://codereview.chromium.org/9455092/diff/32045/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9455092/diff/32045/content/browser/renderer_host/pepper_message_filter.cc#newcode139 content/browser/renderer_host/pepper_message_filter.cc:139: IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBHostResolver_Resolve, wrong indent. http://codereview.chromium.org/9455092/diff/32045/content/browser/renderer_host/pepper_message_filter.cc#newcode281 content/browser/renderer_host/pepper_message_filter.cc:281: OnConnectTcpBoundInfo* bound_info) { nit: ...
8 years, 9 months ago (2012-02-29 19:11:49 UTC) #12
ygorshenin1
PTAL http://codereview.chromium.org/9455092/diff/32045/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9455092/diff/32045/content/browser/renderer_host/pepper_message_filter.cc#newcode139 content/browser/renderer_host/pepper_message_filter.cc:139: IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBHostResolver_Resolve, On 2012/02/29 19:11:49, yzshen1 wrote: > wrong ...
8 years, 9 months ago (2012-03-01 09:37:34 UTC) #13
ygorshenin1
I propose to add "GetCanonicalName" method and simplify "GetItem" method in PPB_HostResolver_Private interface. New "Getitem" ...
8 years, 9 months ago (2012-03-01 10:58:33 UTC) #14
yzshen1
lgtm http://codereview.chromium.org/9455092/diff/45001/ppapi/shared_impl/private/ppb_host_resolver_shared.cc File ppapi/shared_impl/private/ppb_host_resolver_shared.cc (right): http://codereview.chromium.org/9455092/diff/45001/ppapi/shared_impl/private/ppb_host_resolver_shared.cc#newcode24 ppapi/shared_impl/private/ppb_host_resolver_shared.cc:24: ai->ai_addr, nit: when calling a method/function, the style ...
8 years, 9 months ago (2012-03-06 08:07:46 UTC) #15
ygorshenin1
Many thanks, PTAL. https://chromiumcodereview.appspot.com/9455092/diff/45001/ppapi/shared_impl/private/ppb_host_resolver_shared.cc File ppapi/shared_impl/private/ppb_host_resolver_shared.cc (right): https://chromiumcodereview.appspot.com/9455092/diff/45001/ppapi/shared_impl/private/ppb_host_resolver_shared.cc#newcode24 ppapi/shared_impl/private/ppb_host_resolver_shared.cc:24: ai->ai_addr, On 2012/03/06 08:07:46, yzshen1 wrote: ...
8 years, 9 months ago (2012-03-06 10:38:17 UTC) #16
brettw
Thanks for the tests! We should hook them up to run automatically on the buildbots. ...
8 years, 9 months ago (2012-03-06 17:16:07 UTC) #17
Dmitry Polukhin
Eh :( we know that test shouldn't relay on internet access from bots. But it ...
8 years, 9 months ago (2012-03-07 06:56:56 UTC) #18
ygorshenin1
It's not difficult to change tests to use local host and port instead of www.google.com ...
8 years, 9 months ago (2012-03-07 11:52:55 UTC) #19
brettw
Yeah, I think local is good enough. Otherwise this test will just get disabled and ...
8 years, 9 months ago (2012-03-08 05:43:31 UTC) #20
ygorshenin1
Test for HostResolver now sends requests for local host and port. PTAL.
8 years, 9 months ago (2012-03-11 08:13:33 UTC) #21
brettw
thanks, LGTM
8 years, 9 months ago (2012-03-11 18:16:12 UTC) #22
ygorshenin1
+ darin Need an OWNER's LGTM for webkit/*.
8 years, 9 months ago (2012-03-12 08:05:06 UTC) #23
ygorshenin1
+ tony Need an OWNER's LGTM for webkit/.
8 years, 9 months ago (2012-03-14 09:08:20 UTC) #24
tony
LGTM http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h File webkit/plugins/ppapi/ppb_host_resolver_private_impl.h (right): http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h#newcode16 webkit/plugins/ppapi/ppb_host_resolver_private_impl.h:16: explicit PPB_HostResolver_Private_Impl(PP_Instance instance); Nit: Can we explicitly include ...
8 years, 9 months ago (2012-03-14 19:12:15 UTC) #25
ygorshenin1
Many thanks! http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h File webkit/plugins/ppapi/ppb_host_resolver_private_impl.h (right): http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h#newcode16 webkit/plugins/ppapi/ppb_host_resolver_private_impl.h:16: explicit PPB_HostResolver_Private_Impl(PP_Instance instance); For why? PPB_HostResolver_Shared implements ...
8 years, 9 months ago (2012-03-14 20:15:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/9455092/75001
8 years, 9 months ago (2012-03-14 20:19:15 UTC) #27
tony
On 2012/03/14 20:15:06, ygorshenin1 wrote: > http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h > File webkit/plugins/ppapi/ppb_host_resolver_private_impl.h (right): > > http://codereview.chromium.org/9455092/diff/75001/webkit/plugins/ppapi/ppb_host_resolver_private_impl.h#newcode16 > ...
8 years, 9 months ago (2012-03-14 20:52:15 UTC) #28
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 01:21:29 UTC) #29
Change committed as 126813

Powered by Google App Engine
This is Rietveld 408576698