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

Issue 23819033: Simplify PPB_NetworkMonitor proxy. (Closed)

Created:
7 years, 3 months ago by Sergey Ulanov
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Simplify PPB_NetworkMonitor proxy. The new proxy is based on ppapi::proxy::PluginResource and ppapi::host::ResourceHost which simplifies code significantly. Also the permission check is consistent with socket APIs now. BUG=281781 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223482 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223494 R=brettw@chromium.org, yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223535

Patch Set 1 #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : fix compilation after r169825 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -727 lines) Patch
M content/browser/ppapi_plugin_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.h View 1 2 3 4 2 chunks +3 lines, -33 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_message_filter.cc View 1 2 3 chunks +3 lines, -97 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_network_monitor_host.h View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_network_monitor_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +120 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/common/socket_permission_request.h View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 chunk +0 lines, -1 line 0 comments Download
A + ppapi/proxy/network_list_resource.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -52 lines 0 comments Download
A + ppapi/proxy/network_list_resource.cc View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -64 lines 0 comments Download
A ppapi/proxy/network_monitor_resource.h View 1 2 3 4 5 6 7 8 9 1 chunk +58 lines, -0 lines 0 comments Download
A ppapi/proxy/network_monitor_resource.cc View 1 2 3 4 5 6 7 8 9 1 chunk +85 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 6 chunks +9 lines, -13 lines 0 comments Download
D ppapi/proxy/ppb_network_monitor_private_proxy.h View 1 chunk +0 lines, -58 lines 0 comments Download
D ppapi/proxy/ppb_network_monitor_private_proxy.cc View 1 chunk +0 lines, -174 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
M ppapi/proxy/serialized_structs.h View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M ppapi/proxy/serialized_structs.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D ppapi/shared_impl/ppb_network_list_private_shared.h View 1 2 1 chunk +0 lines, -88 lines 0 comments Download
D ppapi/shared_impl/ppb_network_list_private_shared.cc View 1 2 1 chunk +0 lines, -123 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_no_permissions.h View 2 chunks +1 line, -4 lines 0 comments Download
M ppapi/thunk/ppb_network_list_api.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Sergey Ulanov
7 years, 3 months ago (2013-09-06 20:59:40 UTC) #1
Sergey Ulanov
yzshen: ping!
7 years, 3 months ago (2013-09-11 18:43:20 UTC) #2
yzshen1
https://codereview.chromium.org/23819033/diff/4001/content/browser/renderer_host/pepper/pepper_message_filter.cc File content/browser/renderer_host/pepper/pepper_message_filter.cc (left): https://codereview.chromium.org/23819033/diff/4001/content/browser/renderer_host/pepper/pepper_message_filter.cc#oldcode130 content/browser/renderer_host/pepper/pepper_message_filter.cc:130: ppapi::API_ID_PPB_NETWORKMANAGER_PRIVATE, *it, *list_copy)); Please also remove the definition of ...
7 years, 3 months ago (2013-09-11 22:51:26 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/23819033/diff/4001/content/browser/renderer_host/pepper/pepper_message_filter.cc File content/browser/renderer_host/pepper/pepper_message_filter.cc (left): https://codereview.chromium.org/23819033/diff/4001/content/browser/renderer_host/pepper/pepper_message_filter.cc#oldcode130 content/browser/renderer_host/pepper/pepper_message_filter.cc:130: ppapi::API_ID_PPB_NETWORKMANAGER_PRIVATE, *it, *list_copy)); On 2013/09/11 22:51:26, yzshen1 wrote: > ...
7 years, 3 months ago (2013-09-12 07:01:50 UTC) #4
Sergey Ulanov
ping
7 years, 3 months ago (2013-09-13 17:25:55 UTC) #5
yzshen1
LGTM with a few nits. https://codereview.chromium.org/23819033/diff/4001/ppapi/proxy/network_monitor_resource.cc File ppapi/proxy/network_monitor_resource.cc (right): https://codereview.chromium.org/23819033/diff/4001/ppapi/proxy/network_monitor_resource.cc#newcode83 ppapi/proxy/network_monitor_resource.cc:83: void NetworkMonitorResource::OnPluginMsgForbidden( Right. SendUnsolicitedReply() ...
7 years, 3 months ago (2013-09-13 17:47:10 UTC) #6
Sergey Ulanov
+brettw@ - please approve changes in content/public and content/content_browser.gypi +jschuh@ - please review ppapi_messages.h https://codereview.chromium.org/23819033/diff/20001/ppapi/proxy/network_list_resource.cc ...
7 years, 3 months ago (2013-09-13 18:35:00 UTC) #7
Sergey Ulanov
brettw,jschuh: ping
7 years, 3 months ago (2013-09-16 16:33:52 UTC) #8
brettw
LGTM for aforementioned stuff.
7 years, 3 months ago (2013-09-16 17:42:15 UTC) #9
jschuh
ipc security lgtm. all params are passed high->low.
7 years, 3 months ago (2013-09-16 17:53:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23819033/50001
7 years, 3 months ago (2013-09-16 17:56:56 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-16 18:03:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23819033/70001
7 years, 3 months ago (2013-09-16 19:07:33 UTC) #13
Sergey Ulanov
To fix compilation on windows moved ppapi::proxy::NetworkInfo to serialized_structs.h and renamed it to SerializedNetworkInfo.
7 years, 3 months ago (2013-09-16 20:50:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23819033/86001
7 years, 3 months ago (2013-09-16 20:51:10 UTC) #15
commit-bot: I haz the power
Change committed as 223482
7 years, 3 months ago (2013-09-17 00:03:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23819033/86001
7 years, 3 months ago (2013-09-17 00:53:12 UTC) #17
commit-bot: I haz the power
Change committed as 223494
7 years, 3 months ago (2013-09-17 00:59:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/23819033/95001
7 years, 3 months ago (2013-09-17 01:20:34 UTC) #19
Sergey Ulanov
7 years, 3 months ago (2013-09-17 04:15:18 UTC) #20
Message was sent while issue was closed.
Committed patchset #11 manually as r223535 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698