2020-06-25 04:34:12 +02:00
|
|
|
// Copyright 2020 The Chromium Embedded Framework 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 CEF_LIBCEF_COMMON_MAIN_RUNNER_DELEGATE_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_MAIN_RUNNER_DELEGATE_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "include/cef_app.h"
|
|
|
|
|
|
|
|
namespace base {
|
|
|
|
class RunLoop;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace content {
|
|
|
|
class ContentMainDelegate;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CefMainRunnerDelegate {
|
|
|
|
public:
|
|
|
|
virtual content::ContentMainDelegate* GetContentMainDelegate() = 0;
|
|
|
|
|
|
|
|
virtual void BeforeMainThreadInitialize(const CefMainArgs& args) {}
|
|
|
|
virtual void BeforeMainThreadRun() {}
|
|
|
|
virtual void BeforeMainMessageLoopRun(base::RunLoop* run_loop) {}
|
2020-07-04 04:51:17 +02:00
|
|
|
virtual bool HandleMainMessageLoopQuit() { return false; }
|
2023-03-14 20:12:03 +01:00
|
|
|
virtual void BeforeUIThreadInitialize() {}
|
2020-06-25 04:34:12 +02:00
|
|
|
virtual void AfterUIThreadInitialize() {}
|
|
|
|
virtual void AfterUIThreadShutdown() {}
|
|
|
|
virtual void BeforeMainThreadShutdown() {}
|
|
|
|
virtual void AfterMainThreadShutdown() {}
|
|
|
|
virtual void BeforeExecuteProcess(const CefMainArgs& args) {}
|
|
|
|
virtual void AfterExecuteProcess() {}
|
|
|
|
|
|
|
|
virtual ~CefMainRunnerDelegate() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_COMMON_MAIN_RUNNER_DELEGATE_H_
|