OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ | 5 #ifndef CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ |
6 #define CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ | 6 #define CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ |
7 | 7 |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 | 11 |
12 // The name of the watcher DLL. | 12 // The name of the watcher DLL. |
13 extern const base::FilePath::CharType kChromeWatcherDll[]; | 13 extern const base::FilePath::CharType kChromeWatcherDll[]; |
14 // The name of the watcher DLLs entrypoint function. | 14 // The name of the watcher DLLs entrypoint function. |
15 extern const char kChromeWatcherDLLEntrypoint[]; | 15 extern const char kChromeWatcherDLLEntrypoint[]; |
16 | 16 |
17 // The type of the watcher DLL's main entry point. | 17 // The type of the watcher DLL's main entry point. |
18 // Watches |parent_process| and records its exit code under |registry_path| in | 18 // Watches |parent_process| and records its exit code under |registry_path| in |
19 // HKCU. Takes ownership of |parent_process|. | 19 // HKCU. |on_initialized_event| will be signaled once the process is fully |
20 typedef int (*ChromeWatcherMainFunction)(const base::char16* registry_path, | 20 // initialized. Takes ownership of |parent_process| and |on_initialized_event|. |
21 HANDLE parent_process); | 21 typedef int (*ChromeWatcherMainFunction)( |
| 22 const base::char16* registry_path, |
| 23 HANDLE parent_process, |
| 24 HANDLE on_initialized_event); |
22 | 25 |
23 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ | 26 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ |
OLD | NEW |