mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-02-21 09:23:18 +03:00
27 lines
873 B
C++
27 lines
873 B
C++
// Copyright 2023 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef BASE_PROFILER_NATIVE_UNWINDER_ANDROID_MAP_DELEGATE_H_
|
|
#define BASE_PROFILER_NATIVE_UNWINDER_ANDROID_MAP_DELEGATE_H_
|
|
|
|
namespace base {
|
|
|
|
class NativeUnwinderAndroidMemoryRegionsMap;
|
|
|
|
// Interface of libunwindstack Map's lifecycle management. The
|
|
// implementation is designed to live in chrome code instead of in
|
|
// the stack unwinder DFM because DFM might not have enough information to make
|
|
// the decision.
|
|
class NativeUnwinderAndroidMapDelegate {
|
|
public:
|
|
virtual ~NativeUnwinderAndroidMapDelegate() = default;
|
|
|
|
virtual NativeUnwinderAndroidMemoryRegionsMap* GetMapReference() = 0;
|
|
virtual void ReleaseMapReference() = 0;
|
|
};
|
|
|
|
} // namespace base
|
|
|
|
#endif // BASE_PROFILER_NATIVE_UNWINDER_ANDROID_MAP_DELEGATE_H_
|