#include "chrome/browser/memory/chrome_browser_main_extra_parts_memory.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/memory_pressure_monitor.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/memory/enterprise_memory_limit_pref_observer.h"
#include "components/heap_profiling/in_process/browser_process_snapshot_controller.h"
#include "components/heap_profiling/in_process/mojom/snapshot_controller.mojom.h"
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/render_process_host.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "base/logging.h"
#include "base/system/sys_info.h"
#include "chromeos/ash/components/memory/pressure/system_memory_pressure_evaluator.h"
#endif
namespace {
void BindHeapSnapshotControllerToProcessHost(
int child_process_id,
mojo::PendingReceiver<heap_profiling::mojom::SnapshotController> receiver) { … }
}
ChromeBrowserMainExtraPartsMemory::ChromeBrowserMainExtraPartsMemory() = default;
ChromeBrowserMainExtraPartsMemory::~ChromeBrowserMainExtraPartsMemory() =
default;
void ChromeBrowserMainExtraPartsMemory::PostCreateThreads() { … }
void ChromeBrowserMainExtraPartsMemory::PostBrowserStart() { … }
void ChromeBrowserMainExtraPartsMemory::PostMainMessageLoopRun() { … }