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

Issue 929483004: Plugin Power Saver: Throttled Plugins should block TCPSocket reads. (Closed)

Created:
5 years, 10 months ago by tommycli
Modified:
5 years, 10 months ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plugin Power Saver: Throttled Plugins should block TCPSocket reads. BUG=458687, 403800 Committed: https://crrev.com/c7634dec83f331accdb94d455cf0a53ddd3bd98b Cr-Commit-Position: refs/heads/master@{#316963}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : do the throttling the 'right' way at increased complexity #

Patch Set 4 : Wrap ObserverList in linked_ptr to store in STL map. :( #

Patch Set 5 : Fix a broken test #

Total comments: 10

Patch Set 6 : Eliminate linked_ptr usage (doesn't compile) #

Patch Set 7 : Go back to linked_ptr #

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -43 lines) Patch
M content/browser/ppapi_plugin_process_host.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +28 lines, -5 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +61 lines, -23 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h View 1 2 3 4 5 5 chunks +13 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc View 1 2 9 chunks +30 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M content/common/pepper_renderer_instance_data.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
tommycli
dmichael: PTAL This is the TCP Socket throttling implementation we discussed. It works in my ...
5 years, 10 months ago (2015-02-13 23:17:25 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/929483004/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/929483004/diff/20001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode333 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:333: return PP_ERROR_INPROGRESS; Hmm... I think I'd like this better ...
5 years, 10 months ago (2015-02-17 22:00:52 UTC) #4
tommycli
dmichael: I addressed your comments. Doing it the 'right' way actually seems to improve plugin ...
5 years, 10 months ago (2015-02-17 23:21:13 UTC) #5
tommycli
tsepez: May I have a security review of the view_messages.h changes? Thanks!
5 years, 10 months ago (2015-02-18 18:28:27 UTC) #7
dmichael (off chromium)
https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode144 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:144: new ObserverList<InstanceObserver>()); If you use map::insert, I believe your ...
5 years, 10 months ago (2015-02-18 18:58:09 UTC) #8
tommycli
dmichael: Thanks. Do you think this patch will have adverse side effects? I don't know ...
5 years, 10 months ago (2015-02-18 19:19:10 UTC) #9
dmichael (off chromium)
On 2015/02/18 19:19:10, tommycli wrote: > dmichael: Thanks. > > Do you think this patch ...
5 years, 10 months ago (2015-02-18 20:31:30 UTC) #10
dmichael (off chromium)
https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode144 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:144: new ObserverList<InstanceObserver>()); On 2015/02/18 19:19:09, tommycli wrote: > On ...
5 years, 10 months ago (2015-02-18 20:31:40 UTC) #11
Tom Sepez
Messages LGTM
5 years, 10 months ago (2015-02-18 20:40:12 UTC) #12
tommycli
dmichael: See if this is better. Thanks! https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/929483004/diff/100001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode144 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:144: new ObserverList<InstanceObserver>()); ...
5 years, 10 months ago (2015-02-18 21:31:17 UTC) #14
dmichael (off chromium)
https://codereview.chromium.org/929483004/diff/160001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.h File content/browser/renderer_host/pepper/browser_ppapi_host_impl.h (right): https://codereview.chromium.org/929483004/diff/160001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.h#newcode157 content/browser/renderer_host/pepper/browser_ppapi_host_impl.h:157: instance_observers_map_; Couldn't you still put it in InstanceData, and ...
5 years, 10 months ago (2015-02-18 21:44:39 UTC) #15
dmichael (off chromium)
5 years, 10 months ago (2015-02-18 21:44:41 UTC) #16
tommycli
dmichael: thanks https://codereview.chromium.org/929483004/diff/160001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.h File content/browser/renderer_host/pepper/browser_ppapi_host_impl.h (right): https://codereview.chromium.org/929483004/diff/160001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.h#newcode157 content/browser/renderer_host/pepper/browser_ppapi_host_impl.h:157: instance_observers_map_; On 2015/02/18 21:44:39, dmichael wrote: > ...
5 years, 10 months ago (2015-02-18 22:17:27 UTC) #17
dmichael (off chromium)
lgtm https://codereview.chromium.org/929483004/diff/200001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/929483004/diff/200001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode175 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:175: if (data != nullptr) nit: I'd just write: ...
5 years, 10 months ago (2015-02-18 22:32:37 UTC) #18
tommycli
dmichael: thanks! https://codereview.chromium.org/929483004/diff/200001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/929483004/diff/200001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode175 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:175: if (data != nullptr) On 2015/02/18 22:32:37, ...
5 years, 10 months ago (2015-02-18 22:56:45 UTC) #20
tommycli
piman: May I have an OWNERs review? Thanks, Tommy
5 years, 10 months ago (2015-02-18 22:57:11 UTC) #22
piman
lgtm
5 years, 10 months ago (2015-02-18 23:16:30 UTC) #23
tommycli
piman: thanks!
5 years, 10 months ago (2015-02-18 23:17:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/929483004/220001
5 years, 10 months ago (2015-02-18 23:18:55 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 10 months ago (2015-02-19 01:46:45 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 01:47:18 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c7634dec83f331accdb94d455cf0a53ddd3bd98b
Cr-Commit-Position: refs/heads/master@{#316963}

Powered by Google App Engine
This is Rietveld 408576698