| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ | 5 #ifndef BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ |
| 6 #define BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ | 6 #define BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 10 | 9 |
| 11 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 13 | 12 |
| 14 namespace base { | 13 namespace base { |
| 15 namespace mac { | 14 namespace mac { |
| 16 | 15 |
| 17 // BrowserCrApplication attempts to restrict throwing of NSExceptions | 16 // BrowserCrApplication attempts to restrict throwing of NSExceptions |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 | 44 |
| 46 // Executes [target performSelector:sel] with fatal-exceptions turned | 45 // Executes [target performSelector:sel] with fatal-exceptions turned |
| 47 // off, and returns the result. If an exception is thrown during the | 46 // off, and returns the result. If an exception is thrown during the |
| 48 // perform, nil is returned. | 47 // perform, nil is returned. |
| 49 BASE_EXPORT id PerformSelectorIgnoringExceptions(NSObject* target, SEL sel); | 48 BASE_EXPORT id PerformSelectorIgnoringExceptions(NSObject* target, SEL sel); |
| 50 | 49 |
| 51 } // namespace mac | 50 } // namespace mac |
| 52 } // namespace base | 51 } // namespace base |
| 53 | 52 |
| 54 #endif // BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ | 53 #endif // BASE_MAC_SCOPED_NSEXCEPTION_ENABLER_H_ |
| OLD | NEW |