1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_FRAME_PIN_MODULE_H_ 6 #define CHROME_FRAME_PIN_MODULE_H_ 7 8 namespace chrome_frame { 9 10 typedef void (*PinModuleCallbackFn)(void); 11 12 // Sets a callback function to be invoked when the module is pinned. 13 void SetPinModuleCallback(PinModuleCallbackFn callback); 14 15 // Utility function that prevents the current module from ever being unloaded. 16 // Call if you make irreversible patches. 17 void PinModule(); 18 19 } // namespace chrome_frame 20 21 #endif // CHROME_FRAME_PIN_MODULE_H_ 22