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_HANDLER_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace content {
|
|
|
|
struct MainFunctionParams;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Handles running of the main process.
|
|
|
|
class CefMainRunnerHandler {
|
|
|
|
public:
|
2021-06-04 03:34:56 +02:00
|
|
|
virtual void PreBrowserMain() = 0;
|
2020-06-25 04:34:12 +02:00
|
|
|
virtual int RunMainProcess(
|
2021-12-16 23:35:54 +01:00
|
|
|
content::MainFunctionParams main_function_params) = 0;
|
2020-06-25 04:34:12 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~CefMainRunnerHandler() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_
|