Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
CefV8StackTrace Class Referenceabstract

Class representing a V8 stack trace handle. More...

#include "include/cef_v8.h"

Inheritance diagram for CefV8StackTrace:
CefBaseRefCounted

Public Member Functions

virtual bool IsValid ()=0
 Returns true if the underlying handle is valid and it can be accessed on the current thread. More...
 
virtual int GetFrameCount ()=0
 Returns the number of stack frames. More...
 
virtual CefRefPtr< CefV8StackFrameGetFrame (int index)=0
 Returns the stack frame at the specified 0-based index. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Static Public Member Functions

static CefRefPtr< CefV8StackTraceGetCurrent (int frame_limit)
 Returns the stack trace for the currently active context. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class representing a V8 stack trace handle.

V8 handles can only be accessed from the thread on which they are created. Valid threads for creating a V8 handle include the render process main thread (TID_RENDERER) and WebWorker threads. A task runner for posting tasks on the associated thread can be retrieved via the CefV8Context::GetTaskRunner() method.

Member Function Documentation

◆ GetCurrent()

static CefRefPtr<CefV8StackTrace> CefV8StackTrace::GetCurrent ( int  frame_limit)
static

Returns the stack trace for the currently active context.

|frame_limit| is the maximum number of frames that will be captured.

◆ GetFrame()

virtual CefRefPtr<CefV8StackFrame> CefV8StackTrace::GetFrame ( int  index)
pure virtual

Returns the stack frame at the specified 0-based index.

◆ GetFrameCount()

virtual int CefV8StackTrace::GetFrameCount ( )
pure virtual

Returns the number of stack frames.

◆ IsValid()

virtual bool CefV8StackTrace::IsValid ( )
pure virtual

Returns true if the underlying handle is valid and it can be accessed on the current thread.

Do not call any other methods if this method returns false.


The documentation for this class was generated from the following file: