root/third_party/libjingle/overrides/allocator_shim/allocator_stub.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 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 THIRD_PARTY_LIBJINGLE_OVERRIDES_ALLOCATOR_SHIM_ALLOCATOR_STUB_H_
#define THIRD_PARTY_LIBJINGLE_OVERRIDES_ALLOCATOR_SHIM_ALLOCATOR_STUB_H_

#include <new>

#include "base/basictypes.h"

#if !defined(OS_MACOSX) && !defined(OS_ANDROID)

typedef void* (*AllocateFunction)(std::size_t);
typedef void (*DellocateFunction)(void*);

// The stub implementations that forward new / delete calls to the allocator
// in the current binary (i.e. tcmalloc).
void* Allocate(std::size_t n);
void Dellocate(void* p);

#endif  // OS_MACOSX && OS_ANDROID

#endif  // THIRD_PARTY_LIBJINGLE_OVERRIDES_ALLOCATOR_SHIM_ALLOCATOR_STUB_H_

/* [<][>][^][v][top][bottom][index][help] */