Description[Extensions Bindings] Move request dispatch to APIRequestHandler
Move the logic to dispatch the request (via a curried-in callback) to
APIRequestHandler instead of APIBinding. This has a few advantages:
- Makes a bit more sense; the request handler should handle the
requests.
- Reduces a bit of logic in the very-busy APIBinding.
- Will make subsequent CLs (dispatching requests from custom types)
easier.
The only reason the logic currently lives in APIBinding is because it
predates the APIRequestHandler.
BUG=653596
Review-Url: https://codereview.chromium.org/2697363003
Cr-Commit-Position: refs/heads/master@{#451403}
Committed: https://chromium.googlesource.com/chromium/src/+/2f81ad2e573a460938c93cdb022b40034ac7fb5f
Patch Set 1 #Patch Set 2 : . #
Total comments: 4
Dependent Patchsets: Messages
Total messages: 18 (9 generated)
|