| OLD | NEW |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 The system-wide native messaging hosts are looked up at a fixed location, | 94 The system-wide native messaging hosts are looked up at a fixed location, |
| 95 while the user-level native messaging hosts are looked up in a subdirectory with
in the | 95 while the user-level native messaging hosts are looked up in a subdirectory with
in the |
| 96 <a href="https://www.chromium.org/user-experience/user-data-directory">user prof
ile directory</a> | 96 <a href="https://www.chromium.org/user-experience/user-data-directory">user prof
ile directory</a> |
| 97 called <code>NativeMessagingHosts</code>. | 97 called <code>NativeMessagingHosts</code>. |
| 98 | 98 |
| 99 <dl> | 99 <dl> |
| 100 <dt>OS X (system-wide) | 100 <dt>OS X (system-wide) |
| 101 <dd>Google Chrome: <code>/Library/Google/Chrome/NativeMessagingHosts/<em>com.my_
company.my_application</em>.json</code> | 101 <dd>Google Chrome: <code>/Library/Google/Chrome/NativeMessagingHosts/<em>com.my_
company.my_application</em>.json</code> |
| 102 <dd>Chromium: <code>/Library/Application Support/Chromium/NativeMessagingHosts/<
em>com.my_company.my_application</em>.json</code> | 102 <dd>Chromium: <code>/Library/Application Support/Chromium/NativeMessagingHosts/<
em>com.my_company.my_application</em>.json</code> |
| 103 <dt>OS X (user-specific, <em>default</em> path) | 103 <dt>OS X (user-specific, <em>default</em> path) |
| 104 <dd>Google Chrome: <code>~/Library/Application Support/Google/Chrome/Default/Nat
iveMessagingHosts/<em>com.my_company.my_application</em>.json</code> | 104 <dd>Google Chrome: <code>~/Library/Application Support/Google/Chrome/NativeMessa
gingHosts/<em>com.my_company.my_application</em>.json</code> |
| 105 <dd>Chromium: <code>~/Library/Application Support/Chromium/Default/NativeMessagi
ngHosts/<em>com.my_company.my_application</em>.json</code> | 105 <dd>Chromium: <code>~/Library/Application Support/Chromium/NativeMessagingHosts/
<em>com.my_company.my_application</em>.json</code> |
| 106 </dl> | 106 </dl> |
| 107 | 107 |
| 108 <dl> | 108 <dl> |
| 109 <dt>Linux (system-wide) | 109 <dt>Linux (system-wide) |
| 110 <dd>Google Chrome: <code>/etc/opt/chrome/native-messaging-hosts/<em>com.my_compa
ny.my_application</em>.json</code> | 110 <dd>Google Chrome: <code>/etc/opt/chrome/native-messaging-hosts/<em>com.my_compa
ny.my_application</em>.json</code> |
| 111 <dd>Chromium: <code>/etc/chromium/native-messaging-hosts/<em>com.my_company.my_a
pplication</em>.json</code> | 111 <dd>Chromium: <code>/etc/chromium/native-messaging-hosts/<em>com.my_company.my_a
pplication</em>.json</code> |
| 112 <dt>Linux (user-specific, <em>default</em> path) | 112 <dt>Linux (user-specific, <em>default</em> path) |
| 113 <dd>Google Chrome: <code>~/.config/google-chrome/NativeMessagingHosts/<em>com.my
_company.my_application</em>.json</code> | 113 <dd>Google Chrome: <code>~/.config/google-chrome/NativeMessagingHosts/<em>com.my
_company.my_application</em>.json</code> |
| 114 <dd>Chromium: <code>~/.config/chromium/NativeMessagingHosts/<em>com.my_company.m
y_application</em>.json</code> | 114 <dd>Chromium: <code>~/.config/chromium/NativeMessagingHosts/<em>com.my_company.m
y_application</em>.json</code> |
| 115 </dl> | 115 </dl> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 and | 263 and |
| 264 <a href="https://developer.chrome.com/extensions/examples/api/nativeMessaging/ho
st.zip">sample host</a>. | 264 <a href="https://developer.chrome.com/extensions/examples/api/nativeMessaging/ho
st.zip">sample host</a>. |
| 265 | 265 |
| 266 Run <code>install_host.bat</code> (Windows) or | 266 Run <code>install_host.bat</code> (Windows) or |
| 267 <code>install_host.sh</code> (Linux / OS X) to install the native messaging | 267 <code>install_host.sh</code> (Linux / OS X) to install the native messaging |
| 268 host. | 268 host. |
| 269 Then <a href="getstarted#unpacked">load the app</a> and interact with the app. | 269 Then <a href="getstarted#unpacked">load the app</a> and interact with the app. |
| 270 Run <code>uninstall_host.bat</code> or <code>uninstall_host.sh</code> to | 270 Run <code>uninstall_host.bat</code> or <code>uninstall_host.sh</code> to |
| 271 unregister the native messaging host when you are done. | 271 unregister the native messaging host when you are done. |
| 272 | 272 |
| OLD | NEW |