Description[Extensions] Consolidate ExtensionFunction::SendResponse()s
De-virtualize ExtensionFunction::SendResponse() and contain all work in
a single SendResponseImpl()* method, which is private to
ExtensionFunction and can only be invoked through the Respond() methods.
This is a first step in isolating results_, error_, and the response
invocation in order to ensure consistent and clear results from
functions.
Update UIThreadExtensionFunction implementations that used SendResponse()
rather than Respond().
For compatibility, introduce SendResponse() methods on legacy
ExtensionFunction classes (ChromeUIThreadExtensionFunction and
AsyncExtensionFunction) which wrap around Respond(). As functions are
converted, this wrapper will go away.
Also remove the unused ExtensionFunction::OnRespondingLater().
*SendResponseImpl() instead of SendResponse() so that we don't have to
rename existing calls in legacy functions.
BUG=648275
Committed: https://crrev.com/eedb95b1a034bb392ed83e84ee690395a0db3e27
Cr-Commit-Position: refs/heads/master@{#419955}
Patch Set 1 #Patch Set 2 : ready #
Total comments: 6
Patch Set 3 : lazyboy's #Messages
Total messages: 25 (18 generated)
|