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

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

Issue 1809383004: Set current directory when launching Native Messaging processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 <h1>Native Messaging</h1> 1 <h1>Native Messaging</h1>
2 <p> 2 <p>
3 Extensions and apps can exchange messages with native applications using an API 3 Extensions and apps can exchange messages with native applications using an API
4 that is similar to the other <a href="messaging">message passing APIs</a>. 4 that is similar to the other <a href="messaging">message passing APIs</a>.
5 Native applications that support this feature must register a 5 Native applications that support this feature must register a
6 <em>native messaging host</em> that knows how to communicate with the extension. 6 <em>native messaging host</em> that knows how to communicate with the extension.
7 Chrome starts the host in a separate process and communicates with it using 7 Chrome starts the host in a separate process and communicates with it using
8 standard input and standard output streams. 8 standard input and standard output streams.
9 9
10 <h2 id="native-messaging-host">Native messaging host</h2> 10 <h2 id="native-messaging-host">Native messaging host</h2>
(...skipping 30 matching lines...) Expand all
41 </td> 41 </td>
42 </tr> 42 </tr>
43 <tr> 43 <tr>
44 <td><code>description</code></td> 44 <td><code>description</code></td>
45 <td>Short application description.</td> 45 <td>Short application description.</td>
46 </tr> 46 </tr>
47 <tr> 47 <tr>
48 <td><code>path</code></td> 48 <td><code>path</code></td>
49 <td>Path to the native messaging host binary. On Linux and OSX the path must 49 <td>Path to the native messaging host binary. On Linux and OSX the path must
50 be absolute. On Windows it can be relative to the directory in which the 50 be absolute. On Windows it can be relative to the directory in which the
51 manifest file is located.</td> 51 manifest file is located. The host process is started with the current
52 directory set to the directory that contains the host binary. For example if
53 this parameter is set to <code>C:\Application\nm_host.exe</code> then it
54 will be started with current directory <code>C:\Application\</code>.</td>
52 </tr> 55 </tr>
53 <tr> 56 <tr>
54 <td><code>type</code></td> 57 <td><code>type</code></td>
55 <td>Type of the interface used to communicate with the native messaging 58 <td>Type of the interface used to communicate with the native messaging
56 host. Currently there is only one possible value for this parameter: 59 host. Currently there is only one possible value for this parameter:
57 <code>stdio</code>. It indicates that Chrome should use <code>stdin</code> 60 <code>stdio</code>. It indicates that Chrome should use <code>stdin</code>
58 and <code>stdout</code> to communicate with the host.</td> 61 and <code>stdout</code> to communicate with the host.</td>
59 </tr> 62 </tr>
60 <tr> 63 <tr>
61 <td><code>allowed_origins</code></td> 64 <td><code>allowed_origins</code></td>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 and 270 and
268 <a href="https://developer.chrome.com/extensions/examples/api/nativeMessaging/ho st.zip">sample host</a>. 271 <a href="https://developer.chrome.com/extensions/examples/api/nativeMessaging/ho st.zip">sample host</a>.
269 272
270 Run <code>install_host.bat</code> (Windows) or 273 Run <code>install_host.bat</code> (Windows) or
271 <code>install_host.sh</code> (Linux / OS X) to install the native messaging 274 <code>install_host.sh</code> (Linux / OS X) to install the native messaging
272 host. 275 host.
273 Then <a href="getstarted#unpacked">load the app</a> and interact with the app. 276 Then <a href="getstarted#unpacked">load the app</a> and interact with the app.
274 Run <code>uninstall_host.bat</code> or <code>uninstall_host.sh</code> to 277 Run <code>uninstall_host.bat</code> or <code>uninstall_host.sh</code> to
275 unregister the native messaging host when you are done. 278 unregister the native messaging host when you are done.
276 279
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698