blob: 00265405d748091e0c3ec64f9f42109e1502bddf [file] [log] [blame]
// Copyright 2015 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.
#import <Foundation/Foundation.h>
namespace web {
// Adds |impl_block| as a custom implementation for |allocWithZone:| method of
// |target| Class. AddAllocWithZoneMethod can not swizzle existing
// |allocWithZone:| method of |target| Class. Neither |target| nor any of its
// superclases must not have overridden |allocWithZone:|.
void AddAllocWithZoneMethod(Class target, id (^impl_block)(Class, NSZone*));
} // namespace web