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

Issue 1481583002: Narrow the interface to ResourceMessageFilter::GetContexts() (Closed)

Created:
5 years ago by Adam Rice
Modified:
5 years ago
Reviewers:
kinuko, davidben
CC:
chromium-reviews, loading-reviews_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, davidben
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Narrow the interface to ResourceMessageFilter::GetContexts() ResourceMessageFilter::GetContexts() accepted a ResourceHostMsg_Request argument. This provided great flexibility to implementors, but no guarantees to callers of which fields were actually required. Instead, narrow the interface to just the two fields that are currently used, resource_type and origin_pid. This means that implementers will have to change the interface if they want to use other fields, which means that callers will get updated. The origin_pid field is only used by the deprecated NPAPI plugin support and should be removed when that support is deleted. BUG=561549 TEST=content_unittests Committed: https://crrev.com/cfe6e5de8faa0178c01e9aa59b5cac1c1a89480c Cr-Commit-Position: refs/heads/master@{#362544}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clarify when |origin_pid| argument is used. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_message_filter.h View 1 2 chunks +11 lines, -2 lines 2 comments Download
M content/browser/loader/resource_message_filter.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/plugin_process_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/plugin_process_host.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Adam Rice
kinuko, could you review this if you have time? Otherwise you or I could find ...
5 years ago (2015-11-25 16:26:46 UTC) #2
kinuko
The code change itself looks good, want to make the documentation around origin_pid clearer though. ...
5 years ago (2015-11-26 03:52:37 UTC) #3
Adam Rice
https://codereview.chromium.org/1481583002/diff/1/content/browser/loader/resource_message_filter.h File content/browser/loader/resource_message_filter.h (right): https://codereview.chromium.org/1481583002/diff/1/content/browser/loader/resource_message_filter.h#newcode43 content/browser/loader/resource_message_filter.h:43: int origin_pid, On 2015/11/26 03:52:37, kinuko wrote: > Can ...
5 years ago (2015-11-26 08:53:51 UTC) #5
kinuko
lgtm
5 years ago (2015-11-26 10:05:20 UTC) #6
Adam Rice
+davidben FYI. If you have no objection, I will land this.
5 years ago (2015-12-01 18:11:55 UTC) #7
davidben
lgtm https://codereview.chromium.org/1481583002/diff/20001/content/browser/loader/resource_message_filter.h File content/browser/loader/resource_message_filter.h (right): https://codereview.chromium.org/1481583002/diff/20001/content/browser/loader/resource_message_filter.h#newcode42 content/browser/loader/resource_message_filter.h:42: // crbug.com/493212 is the tracking bug for NPAPI ...
5 years ago (2015-12-01 19:01:57 UTC) #9
Adam Rice
https://codereview.chromium.org/1481583002/diff/20001/content/browser/loader/resource_message_filter.h File content/browser/loader/resource_message_filter.h (right): https://codereview.chromium.org/1481583002/diff/20001/content/browser/loader/resource_message_filter.h#newcode42 content/browser/loader/resource_message_filter.h:42: // crbug.com/493212 is the tracking bug for NPAPI removal. ...
5 years ago (2015-12-01 19:25:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481583002/20001
5 years ago (2015-12-01 19:27:14 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/148157)
5 years ago (2015-12-01 20:12:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481583002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481583002/20001
5 years ago (2015-12-01 21:39:35 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-01 23:24:55 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-01 23:27:26 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cfe6e5de8faa0178c01e9aa59b5cac1c1a89480c
Cr-Commit-Position: refs/heads/master@{#362544}

Powered by Google App Engine
This is Rietveld 408576698