diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:01 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:01 +0000 |
commit | aaa47ee9d83f773d37aa4fd4a04097425ce62063 (patch) | |
tree | 9250680ad28ed8c31fdb967b702e2b638bd80347 /chrome/browser/chrome_browser_application_mac.h | |
parent | 0d6bb06531d9b7d68e6d78b79b4ec29e68a059cb (diff) | |
download | chromium_src-aaa47ee9d83f773d37aa4fd4a04097425ce62063.zip chromium_src-aaa47ee9d83f773d37aa4fd4a04097425ce62063.tar.gz chromium_src-aaa47ee9d83f773d37aa4fd4a04097425ce62063.tar.bz2 |
Cleans up our autorelease pool handling by making sure that an autorelease pool isn't created while the app is handling an event sent via -[NSApp sendEvent].
Branches browser/chrome_application_mac into browser/chrome_browser_application and base/chrome_application. Renderers will run as chrome_applications, and browsers will run as chrome_browser_applications.
BUG=26418, 25462, 25463, 25465
TEST=1) See bug 25857. 2) Start up. Open 3+ windows. 3)Quit. See bugs for other repro cases.
Review URL: http://codereview.chromium.org/345051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_application_mac.h')
-rw-r--r-- | chrome/browser/chrome_browser_application_mac.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_application_mac.h b/chrome/browser/chrome_browser_application_mac.h new file mode 100644 index 0000000..9a1ab9e --- /dev/null +++ b/chrome/browser/chrome_browser_application_mac.h @@ -0,0 +1,39 @@ +// Copyright (c) 2009 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_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ +#define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ + +#ifdef __OBJC__ + +#import "base/chrome_application_mac.h" + +@interface BrowserCrApplication : CrApplication +@end + +namespace chrome_browser_application_mac { + +// Bin for unknown exceptions. Exposed for testing purposes. +extern const size_t kUnknownNSException; + +// Returns the histogram bin for |exception| if it is one we track +// specifically, or |kUnknownNSException| if unknown. Exposed for testing +// purposes. +size_t BinForException(NSException* exception); + +// Use UMA to track exception occurance. Exposed for testing purposes. +void RecordExceptionWithUma(NSException* exception); + +} // namespace chrome_browser_application_mac + +#endif // __OBJC__ + +namespace chrome_browser_application_mac { + +// Calls -[NSApp terminate:]. +void Terminate(); + +} // namespace chrome_browser_application_mac + +#endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_ |