#include "chrome/browser/background/background_mode_optimizer.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "chrome/browser/background/background_mode_manager.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/lifetime/browser_shutdown.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "components/keep_alive_registry/keep_alive_registry.h"
BackgroundModeOptimizer::~BackgroundModeOptimizer() { … }
std::unique_ptr<BackgroundModeOptimizer> BackgroundModeOptimizer::Create() { … }
void BackgroundModeOptimizer::OnKeepAliveStateChanged(bool is_keeping_alive) { … }
void BackgroundModeOptimizer::OnKeepAliveRestartStateChanged(bool can_restart) { … }
void BackgroundModeOptimizer::OnBrowserAdded(Browser* browser) { … }
BackgroundModeOptimizer::BackgroundModeOptimizer() { … }
void BackgroundModeOptimizer::TryBrowserRestart() { … }
void BackgroundModeOptimizer::DoRestart() { … }