Index: chrome/common/extensions/docs/server2/templates/private/extension_intro.html |
diff --git a/chrome/common/extensions/docs/server2/templates/private/extension_intro.html b/chrome/common/extensions/docs/server2/templates/private/extension_intro.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d7845b190a4875fe9033c3672886c05469062636 |
--- /dev/null |
+++ b/chrome/common/extensions/docs/server2/templates/private/extension_intro.html |
@@ -0,0 +1,43 @@ |
+<!-- BEGIN AUTHORED CONTENT --> |
+<p id="classSummary"> |
+The <code>chrome.extension</code> 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 |
+<a href="messaging.html">Message Passing</a>. |
+</p> |
+<h2 id="content scripts">Support for content scripts</h2> |
+<p> |
+Unlike the other chrome.* APIs, |
+parts of <code>chrome.extension</code> |
+can be used by content scripts: |
+</p> |
+<dl> |
+ <dt> |
+ <a href="#method-sendMessage"><code>sendMessage()</code></a> and |
+ <a href="#event-onMessage"><code>onMessage</code></a> |
+ </dt> |
+ <dd> |
+ Simple communication with extension pages |
+ </dd> |
+ <dt> |
+ <a href="#method-connect"><code>connect()</code></a> and |
+ <a href="#event-onConnect"><code>onConnect</code></a> |
+ </dt> |
+ <dd> |
+ Extended communication with extension pages |
+ </dd> |
+ <dt> |
+ <a href="#method-getURL"><code>getURL()</code></a> |
+ </dt> |
+ <dd> |
+ Access to extension resources such as image files |
+ </dd> |
+</dl> |
+<p> |
+For details, see |
+<a href="content_scripts.html">Content Scripts</a>. |
+</p> |
+<!-- END AUTHORED CONTENT --> |