chromium/content/browser/compute_pressure/web_contents_pressure_manager_proxy.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 CONTENT_BROWSER_COMPUTE_PRESSURE_WEB_CONTENTS_PRESSURE_MANAGER_PROXY_H_
#define CONTENT_BROWSER_COMPUTE_PRESSURE_WEB_CONTENTS_PRESSURE_MANAGER_PROXY_H_

#include <optional>

#include "base/containers/flat_map.h"
#include "base/memory/weak_ptr.h"
#include "base/unguessable_token.h"
#include "content/common/content_export.h"
#include "content/public/browser/web_contents_user_data.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/device/public/mojom/pressure_manager.mojom.h"
#include "services/device/public/mojom/pressure_update.mojom-shared.h"

namespace content {

class ScopedVirtualPressureSourceForDevTools;

class CONTENT_EXPORT WebContentsPressureManagerProxy final
    : public WebContentsUserData<WebContentsPressureManagerProxy> {};

// This class is the public interface to the virtual pressure source related
// Mojo calls. Instances are created by
// WebContentsPressureManagerProxy::CreateVirtualPressurSourceForDevTools().
//
// RemoveVirtualPressureSource() is invoked automatically on destruction, and
// CreateVirtualPressureSource() is invoked automatically on creation.
class CONTENT_EXPORT ScopedVirtualPressureSourceForDevTools final {};

}  // namespace content

#endif  // CONTENT_BROWSER_COMPUTE_PRESSURE_WEB_CONTENTS_PRESSURE_MANAGER_PROXY_H_