The chrome.extension
module
has utilities that can be used by any extension page.
It includes support for exchanging messages
between an extension and its content scripts
or between extensions,
as described in detail in
Message Passing.
Unlike the other chrome.* APIs,
parts of chrome.extension
can be used by content scripts:
sendRequest()
and
onRequest
connect()
and
onConnect
getURL()
For details, see Content Scripts.