1 // Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_ 6 #define CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_ 7 #pragma once 8 9 namespace content { 10 struct MainFunctionParams; 11 } 12 13 // Handles running of the main process. 14 class CefMainRunnerHandler { 15 public: 16 virtual void PreBrowserMain() = 0; 17 virtual int RunMainProcess( 18 content::MainFunctionParams main_function_params) = 0; 19 20 protected: ~CefMainRunnerHandler()21 virtual ~CefMainRunnerHandler() {} 22 }; 23 24 #endif // CEF_LIBCEF_COMMON_MAIN_RUNNER_HANDLER_H_ 25