12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef BASE_PROFILER_THREAD_DELEGATE_H_
- #define BASE_PROFILER_THREAD_DELEGATE_H_
- #include <vector>
- #include "base/base_export.h"
- #include "base/profiler/register_context.h"
- #include "base/threading/platform_thread.h"
- namespace base {
- class BASE_EXPORT ThreadDelegate {
- public:
- ThreadDelegate() = default;
- virtual ~ThreadDelegate() = default;
- ThreadDelegate(const ThreadDelegate&) = delete;
- ThreadDelegate& operator=(const ThreadDelegate&) = delete;
-
- virtual PlatformThreadId GetThreadId() const = 0;
-
- virtual uintptr_t GetStackBaseAddress() const = 0;
-
-
-
- virtual std::vector<uintptr_t*> GetRegistersToRewrite(
- RegisterContext* thread_context) = 0;
- };
- }
- #endif
|