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

Unified Diff: chrome_frame/pin_module.h

Issue 12521002: Start and stop crash reporting outside of the loader lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 7 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/infobars/internal/subclassing_window_with_delegate.h ('k') | chrome_frame/pin_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/pin_module.h
diff --git a/chrome_frame/pin_module.h b/chrome_frame/pin_module.h
new file mode 100644
index 0000000000000000000000000000000000000000..8b4b4e8bd536b62f3c855abf660ea108a91a3bc5
--- /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_
« no previous file with comments | « chrome_frame/infobars/internal/subclassing_window_with_delegate.h ('k') | chrome_frame/pin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698