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

Side by Side Diff: chrome/chrome_watcher/chrome_watcher_main_api.h

Issue 2491463002: Revert of Windows install_static refactor. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | chrome/install_static/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 12
13 // The name of the watcher DLL. 13 // The name of the watcher DLL.
14 extern const base::FilePath::CharType kChromeWatcherDll[]; 14 extern const base::FilePath::CharType kChromeWatcherDll[];
15 // The name of the watcher DLLs entrypoint function. 15 // The name of the watcher DLLs entrypoint function.
16 extern const char kChromeWatcherDLLEntrypoint[]; 16 extern const char kChromeWatcherDLLEntrypoint[];
17 // The subdirectory of the browser data directory where permanently failed crash 17 // The subdirectory of the browser data directory where permanently failed crash
18 // reports will be stored. 18 // reports will be stored.
19 extern const base::FilePath::CharType kPermanentlyFailedReportsSubdir[]; 19 extern const base::FilePath::CharType kPermanentlyFailedReportsSubdir[];
20 20
21 // The type of the watcher DLL's main entry point. 21 // The type of the watcher DLL's main entry point.
22 // Watches |parent_process|, whose main thread ID is |main_thread_id|, and 22 // Watches |parent_process|, whose main thread ID is |main_thread_id|, and
23 // records its exit code under |registry_path| in HKCU. The Chrome message 23 // records its exit code under |registry_path| in HKCU. The Chrome message
24 // window, owned by |parent_process|, will be monitored for responsiveness. If 24 // window, owned by |parent_process|, will be monitored for responsiveness. If
25 // enabled, a Kasko reporter process is also instantiated, using 25 // enabled, a Kasko reporter process is also instantiated, using
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|. |channel_name| is the current
29 // Chrome distribution channel (one of installer::kChromeChannelXXX).
29 typedef int (*ChromeWatcherMainFunction)( 30 typedef int (*ChromeWatcherMainFunction)(
30 const base::char16* registry_path, 31 const base::char16* registry_path,
31 HANDLE parent_process, 32 HANDLE parent_process,
32 DWORD main_thread_id, 33 DWORD main_thread_id,
33 HANDLE on_initialized_event, 34 HANDLE on_initialized_event,
34 const base::char16* browser_data_directory); 35 const base::char16* browser_data_directory,
36 const base::char16* channel_name);
35 37
36 // Returns an RPC endpoint name for the identified client process. This method 38 // 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 39 // 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 40 // client process to establish communication between the two using a common
39 // endpoint name. 41 // endpoint name.
40 base::string16 GetKaskoEndpoint(base::ProcessId client_process_id); 42 base::string16 GetKaskoEndpoint(base::ProcessId client_process_id);
41 43
42 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_ 44 #endif // CHROME_CHROME_WATCHER_CHROME_WATCHER_MAIN_API_H_
OLDNEW
« no previous file with comments | « chrome/chrome_watcher/chrome_watcher_main.cc ('k') | chrome/install_static/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698