chromium/chrome/browser/ui/performance_controls/tab_resource_usage_tab_helper.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_PERFORMANCE_CONTROLS_TAB_RESOURCE_USAGE_TAB_HELPER_H_
#define CHROME_BROWSER_UI_PERFORMANCE_CONTROLS_TAB_RESOURCE_USAGE_TAB_HELPER_H_

#include "components/performance_manager/public/features.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"

class TabResourceUsage : public base::RefCounted<TabResourceUsage> {};

// Per-tab class to keep track of current memory usage for each tab.
class TabResourceUsageTabHelper
    : public content::WebContentsObserver,
      public content::WebContentsUserData<TabResourceUsageTabHelper> {};

#endif  // CHROME_BROWSER_UI_PERFORMANCE_CONTROLS_TAB_RESOURCE_USAGE_TAB_HELPER_H_