Chromium Code Reviews
DescriptionNarrow 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
Messages
Total messages: 20 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||