| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.processes</code> API to interact with the browser's | 5 // Use the <code>chrome.processes</code> API to interact with the browser's |
| 6 // processes. | 6 // processes. |
| 7 [use_movable_types=true]namespace processes { | 7 namespace processes { |
| 8 // The types of the browser processes. | 8 // The types of the browser processes. |
| 9 enum ProcessType { | 9 enum ProcessType { |
| 10 browser, | 10 browser, |
| 11 renderer, | 11 renderer, |
| 12 extension, | 12 extension, |
| 13 notification, | 13 notification, |
| 14 plugin, | 14 plugin, |
| 15 worker, | 15 worker, |
| 16 nacl, | 16 nacl, |
| 17 utility, | 17 utility, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 // Fired each time a process is terminated, providing the type of exit. | 167 // Fired each time a process is terminated, providing the type of exit. |
| 168 // |processId|: The ID of the process that exited. | 168 // |processId|: The ID of the process that exited. |
| 169 // |exitType|: The type of exit that occurred for the process - normal, | 169 // |exitType|: The type of exit that occurred for the process - normal, |
| 170 // abnormal, killed, crashed. Only available for renderer processes. | 170 // abnormal, killed, crashed. Only available for renderer processes. |
| 171 // |exitCode|: The exit code if the process exited abnormally. Only | 171 // |exitCode|: The exit code if the process exited abnormally. Only |
| 172 // available for renderer processes. | 172 // available for renderer processes. |
| 173 static void onExited(long processId, long exitType, long exitCode); | 173 static void onExited(long processId, long exitType, long exitCode); |
| 174 }; | 174 }; |
| 175 }; | 175 }; |
| OLD | NEW |