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

Side by Side Diff: chrome/common/mac/objc_method_swizzle.h

Issue 7826016: [Mac] Enable CrZombie for all processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace, and verify merge. Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/mac/DEPS ('k') | chrome/common/mac/objc_method_swizzle.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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 CHROME_BROWSER_UI_COCOA_OBJC_METHOD_SWIZZLE_H_ 5 #ifndef CHROME_COMMON_MAC_OBJC_METHOD_SWIZZLE_H_
6 #define CHROME_BROWSER_UI_COCOA_OBJC_METHOD_SWIZZLE_H_ 6 #define CHROME_COMMON_MAC_OBJC_METHOD_SWIZZLE_H_
7 #pragma once 7 #pragma once
8 8
9 #import <objc/objc-class.h> 9 #import <objc/objc-class.h>
10 10
11 // You should think twice every single time you use anything from this 11 // You should think twice every single time you use anything from this
12 // namespace. 12 // namespace.
13 namespace ObjcEvilDoers { 13 namespace ObjcEvilDoers {
14 14
15 // This is similar to class_getInstanceMethod(), except that it 15 // This is similar to class_getInstanceMethod(), except that it
16 // returns NULL if |aClass| does not directly implement |aSelector|. 16 // returns NULL if |aClass| does not directly implement |aSelector|.
17 Method GetImplementedInstanceMethod(Class aClass, SEL aSelector); 17 Method GetImplementedInstanceMethod(Class aClass, SEL aSelector);
18 18
19 // Exchanges the implementation of |originalSelector| and 19 // Exchanges the implementation of |originalSelector| and
20 // |alternateSelector| within |aClass|. Both selectors must be 20 // |alternateSelector| within |aClass|. Both selectors must be
21 // implemented directly by |aClass|, not inherited. The IMP returned 21 // implemented directly by |aClass|, not inherited. The IMP returned
22 // is for |originalSelector| (for purposes of forwarding). 22 // is for |originalSelector| (for purposes of forwarding).
23 IMP SwizzleImplementedInstanceMethods( 23 IMP SwizzleImplementedInstanceMethods(
24 Class aClass, const SEL originalSelector, const SEL alternateSelector); 24 Class aClass, const SEL originalSelector, const SEL alternateSelector);
25 25
26 } // namespace ObjcEvilDoers 26 } // namespace ObjcEvilDoers
27 27
28 #endif // CHROME_BROWSER_UI_COCOA_OBJC_METHOD_SWIZZLE_H_ 28 #endif // CHROME_COMMON_MAC_OBJC_METHOD_SWIZZLE_H_
OLDNEW
« no previous file with comments | « chrome/common/mac/DEPS ('k') | chrome/common/mac/objc_method_swizzle.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698