| 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/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // |browser_data_directory| to store crash reports. |on_initialized_event| will | 26 // |browser_data_directory| to store crash reports. |on_initialized_event| will |
| 27 // be signaled once the watcher process is fully initialized. Takes ownership of | 27 // be signaled once the watcher process is fully initialized. Takes ownership of |
| 28 // |parent_process| and |on_initialized_event|. | 28 // |parent_process| and |on_initialized_event|. |
| 29 typedef int (*ChromeWatcherMainFunction)( | 29 typedef int (*ChromeWatcherMainFunction)( |
| 30 const base::char16* registry_path, | 30 const base::char16* registry_path, |
| 31 HANDLE parent_process, | 31 HANDLE parent_process, |
| 32 DWORD main_thread_id, | 32 DWORD main_thread_id, |
| 33 HANDLE on_initialized_event, | 33 HANDLE on_initialized_event, |
| 34 const base::char16* browser_data_directory); | 34 const base::char16* browser_data_directory); |
| 35 | 35 |
| 36 // Returns an RPC endpoint name for the identified client process. This method | |
| 37 // may be invoked in both the client and the watcher process with the PID of the | |
| 38 // client process to establish communication between the two using a common | |
| 39 // endpoint name. | |
| 40 base::string16 GetKaskoEndpoint(base::ProcessId client_process_id); | |
| 41 | |
| 42 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ | 36 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ |
| OLD | NEW |