diff options
Diffstat (limited to 'libcef/common/main_runner_handler.h')
-rw-r--r-- | libcef/common/main_runner_handler.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libcef/common/main_runner_handler.h b/libcef/common/main_runner_handler.h new file mode 100644 index 00000000..1314c72e --- /dev/null +++ b/libcef/common/main_runner_handler.h @@ -0,0 +1,24 @@ +// 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: + virtual void PreBrowserMain() = 0; + virtual int RunMainProcess( + content::MainFunctionParams main_function_params) = 0; + + protected: + virtual ~CefMainRunnerHandler() {} +}; + +#endif // CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_ |