#ifndef IOS_WEB_PUBLIC_INIT_WEB_MAIN_H_
#define IOS_WEB_PUBLIC_INIT_WEB_MAIN_H_
#include <memory>
#include <string>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "ios/web/public/init/web_main_delegate.h"
namespace web {
class WebMainRunner;
struct WebMainParams {
WebMainParams();
explicit WebMainParams(WebMainDelegate* delegate);
WebMainParams(const WebMainParams&) = delete;
WebMainParams& operator=(const WebMainParams&) = delete;
~WebMainParams();
WebMainParams(WebMainParams&& other);
WebMainParams& operator=(WebMainParams&& other);
raw_ptr<WebMainDelegate> delegate;
bool register_exit_manager = true;
std::vector<std::string> args;
};
class WebMain {
public:
explicit WebMain(WebMainParams params);
~WebMain();
int Startup();
private:
std::unique_ptr<WebMainRunner> web_main_runner_;
};
}
#endif