#include "chrome/browser/performance_manager/user_tuning/user_performance_tuning_notifier.h"
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "components/performance_manager/public/graph/page_node.h"
#include "components/performance_manager/public/graph/process_node.h"
namespace performance_manager::user_tuning {
const int UserPerformanceTuningNotifier::kTabCountThresholdForPromo = …;
const int UserPerformanceTuningNotifier::kMemoryPercentThresholdForPromo = …;
UserPerformanceTuningNotifier::UserPerformanceTuningNotifier(
std::unique_ptr<Receiver> receiver,
uint64_t resident_set_threshold_kb,
int tab_count_threshold)
: … { … }
UserPerformanceTuningNotifier::~UserPerformanceTuningNotifier() = default;
void UserPerformanceTuningNotifier::OnPassedToGraph(Graph* graph) { … }
void UserPerformanceTuningNotifier::OnTakenFromGraph(Graph* graph) { … }
void UserPerformanceTuningNotifier::OnPageNodeAdded(const PageNode* page_node) { … }
void UserPerformanceTuningNotifier::OnBeforePageNodeRemoved(
const PageNode* page_node) { … }
void UserPerformanceTuningNotifier::OnTypeChanged(const PageNode* page_node,
PageType previous_type) { … }
void UserPerformanceTuningNotifier::OnProcessMemoryMetricsAvailable(
const SystemNode* system_node) { … }
void UserPerformanceTuningNotifier::MaybeAddTabAndNotify(
const PageNode* page_node) { … }
}