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

Side by Side Diff: ios/web/alloc_with_zone_interceptor.h

Issue 1043263003: Implemented AddAllocWithZoneMethod to override allocWithZone: on demand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2015 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 IOS_WEB_ALLOC_WITH_ZONE_INTERCEPTOR_H_
6 #define IOS_WEB_ALLOC_WITH_ZONE_INTERCEPTOR_H_
7
8 #import <Foundation/Foundation.h>
9
10 namespace web {
11 // Adds |impl_block| as a custom implementation for allocWithZone: method of
12 // |target| Class. AddAllocWithZoneMethod can not swizzle existing
13 // allocWithZone: method of |target| Class. |target| or any of its superclases
14 // must not have overridden allocWithZone:.
15 void AddAllocWithZoneMethod(Class target, id (^impl_block)(Class, NSZone*));
16 } // namespace web
17
18 #endif // IOS_WEB_ALLOC_WITH_ZONE_INTERCEPTOR_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/alloc_with_zone_interceptor.mm » ('j') | ios/web/alloc_with_zone_interceptor.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698