#include "content/public/test/no_renderer_crashes_assertion.h"
#include "base/no_destructor.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/child_process_termination_info.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
NoRendererCrashesAssertion::Suspensions&
NoRendererCrashesAssertion::Suspensions::GetInstance() { … }
NoRendererCrashesAssertion::Suspensions::Suspensions() = default;
NoRendererCrashesAssertion::Suspensions::~Suspensions() = default;
void NoRendererCrashesAssertion::Suspensions::AddSuspension(int process_id) { … }
void NoRendererCrashesAssertion::Suspensions::RemoveSuspension(int process_id) { … }
bool NoRendererCrashesAssertion::Suspensions::IsSuspended(int process_id) { … }
NoRendererCrashesAssertion::NoRendererCrashesAssertion() { … }
NoRendererCrashesAssertion::~NoRendererCrashesAssertion() = default;
void NoRendererCrashesAssertion::OnRenderProcessHostCreated(
RenderProcessHost* host) { … }
void NoRendererCrashesAssertion::RenderProcessExited(
RenderProcessHost* host,
const ChildProcessTerminationInfo& info) { … }
void NoRendererCrashesAssertion::RenderProcessHostDestroyed(
RenderProcessHost* host) { … }
ScopedAllowRendererCrashes::ScopedAllowRendererCrashes()
: … { … }
ScopedAllowRendererCrashes::ScopedAllowRendererCrashes(
RenderProcessHost* process)
: … { … }
ScopedAllowRendererCrashes::ScopedAllowRendererCrashes(
const ToRenderFrameHost& frame)
: … { … }
ScopedAllowRendererCrashes::~ScopedAllowRendererCrashes() { … }
}