diff options
Diffstat (limited to 'chrome_frame/pin_module.h')
-rw-r--r-- | chrome_frame/pin_module.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome_frame/pin_module.h b/chrome_frame/pin_module.h new file mode 100644 index 0000000..8b4b4e8 --- /dev/null +++ b/chrome_frame/pin_module.h @@ -0,0 +1,21 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_FRAME_PIN_MODULE_H_ +#define CHROME_FRAME_PIN_MODULE_H_ + +namespace chrome_frame { + +typedef void (*PinModuleCallbackFn)(void); + +// Sets a callback function to be invoked when the module is pinned. +void SetPinModuleCallback(PinModuleCallbackFn callback); + +// Utility function that prevents the current module from ever being unloaded. +// Call if you make irreversible patches. +void PinModule(); + +} // namespace chrome_frame + +#endif // CHROME_FRAME_PIN_MODULE_H_ |