diff options
Diffstat (limited to 'chrome/app/client_util.h')
-rw-r--r-- | chrome/app/client_util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/app/client_util.h b/chrome/app/client_util.h index c4d74d2..a391be0 100644 --- a/chrome/app/client_util.h +++ b/chrome/app/client_util.h @@ -34,10 +34,14 @@ class MainDllLoader { // most current version of chrome.dll. virtual std::wstring GetRegistryPath() = 0; - // Called after chrome.dll has beem loaded but before the entry point + // Called after chrome.dll has been loaded but before the entry point // is invoked. Derived classes can implement custom actions here. virtual void OnBeforeLaunch(const std::wstring& version) {} + // Called after the chrome.dll entry point returns and before terminating + // this process. The return value will be used as the process return code. + virtual int OnBeforeExit(int return_code) { return return_code; } + protected: HMODULE Load(std::wstring* version, std::wstring* file); |