Or, apologies for not making the requirements clear in first place.
Native host needs http headers and payload of the post request for scanning (both available in the interceptHeaders method) in order to determine the verdict. So interceptHeaders method needs to wait until callback (supplied to the chrome.sendNativeMessage) gets called for each post request in real time (and not asynchronously). So this is not just url based verdict.
Ameet
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/d55b7f4f-363d-4190-837b-92b16ce21d92%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
chrome.webRequest.onBeforeRequest.addListener( function(details) { return {cancel: details.url.indexOf("://www.evil.com/") != -1}; }, {urls: ["<all_urls>"]}, ["blocking"]);
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.