Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: chrome/common/extensions/docs/templates/articles/manifest/sockets.html

Issue 94093013: Add documentation for the chrome.sockets API and manifest key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <h1>sockets</h1>
2
3 <p>
4 The <code>sockets</code> manifest property declares which permissions are
5 available for the <a href="../sockets_udp.html">chrome.sockets.udp</a>, <a href= "../sockets_tcp.html">chrome.sockets.tcp</a> and <a href="../sockets_tcp_server. html">chrome.sockets.tcpServer</a> APIs.
not at google - send to devlin 2014/01/03 03:02:14 ben wells did some work to make $ref's work from d
rpaquay 2014/01/06 22:28:29 Done.
6 </p>
7
8 <h2 id="manifest">Sample manifest.json</h2>
9 <pre data-filename="manifest.json">
10 {
11 "name": "My Sockets {{platform}}",
12 "sockets": {
13 "udp": {
14 // Permission for chrome.sockets.udp.send:
15 // The application is allowed to send udp packets
16 // to any host:port combination.
17 "send": "*"
18 },
19 "tcp": {
20 // Permission for chrome.sockets.tcp.connect:
21 // The application is allowed to connect only to the
22 // tcp server on 127.0.0.1 port 80.
23 "connect": "127.0.0.1:80"
24 },
25 "tcpServer": {
26 // Permission for chrome.sockets.tcpServer.listen:
27 // The application is allowed to accept new client
28 // connections on the local address at port 80.
29 "listen": "127.0.0.1:80"
30 }
31 },
32 ...
33 }
34 </pre>
35
not at google - send to devlin 2014/01/03 03:02:14 this should probably go in its own <section>, see
rpaquay 2014/01/06 22:28:29 This article follows the same pattern as "external
36 <h2 id="reference">Reference</h2>
37 <p class="api_reference">
38 {{+partials.type type:apis.manifestTypes.byName.sockets/}}
39 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698