#include "content/browser/compute_pressure/pressure_service_base.h"
#include <utility>
#include "base/ranges/algorithm.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/device_service.h"
#include "content/public/browser/video_picture_in_picture_window_controller.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
namespace content {
PressureServiceBase::PressureServiceBase()
: … { … }
PressureServiceBase::~PressureServiceBase() { … }
bool PressureServiceBase::HasImplicitFocus(RenderFrameHost* render_frame_host) { … }
bool PressureServiceBase::CanCallAddClient() const { … }
void PressureServiceBase::BindReceiver(
mojo::PendingReceiver<blink::mojom::WebPressureManager> receiver) { … }
void PressureServiceBase::AddClient(device::mojom::PressureSource source,
AddClientCallback callback) { … }
void PressureServiceBase::OnPressureManagerDisconnected() { … }
void PressureServiceBase::DidAddClient(
device::mojom::PressureSource source,
AddClientCallback client_callback,
device::mojom::PressureManagerAddClientResultPtr result) { … }
}