Home | History | Annotate | Download | only in static
      1 <!-- BEGIN AUTHORED CONTENT -->
      2 <p id="classSummary">
      3 The <code>chrome.extension</code> module
      4 has utilities that can be used by any extension page.
      5 It includes support for exchanging messages
      6 between an extension and its content scripts
      7 or between extensions,
      8 as described in detail in
      9 <a href="messaging.html">Message Passing</a>.
     10 </p>
     11 
     12 <h2 id="content scripts">Support for content scripts</h2>
     13 <p>
     14 Unlike the other chrome.* APIs,
     15 parts of <code>chrome.extension</code>
     16 can be used by content scripts:
     17 </p>
     18 
     19 <dl>
     20   <dt>
     21     <a href="#method-sendRequest"><code>sendRequest()</code></a> and
     22     <a href="#event-onRequest"><code>onRequest</code></a>
     23   </dt>
     24   <dd>
     25     Simple communication with extension pages
     26   </dd>
     27   <dt>
     28     <a href="#method-connect"><code>connect()</code></a> and
     29     <a href="#event-onConnect"><code>onConnect</code></a>
     30   </dt>
     31   <dd>
     32     Extended communication with extension pages
     33   </dd>
     34   <dt>
     35     <a href="#method-getURL"><code>getURL()</code></a>
     36   </dt>
     37   <dd>
     38     Access to extension resources such as image files
     39   </dd>
     40 </dl>
     41 
     42 <p>
     43 For details, see
     44 <a href="content_scripts.html">Content Scripts</a>.
     45 </p>
     46 
     47 <!-- END AUTHORED CONTENT -->
     48