// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_PRESENTATION_AVAILABILITY_STATE_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_PRESENTATION_AVAILABILITY_STATE_H_ #include <memory> #include "base/memory/raw_ptr.h" #include "third_party/blink/public/mojom/presentation/presentation.mojom-blink.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/presentation/presentation_availability_callbacks.h" #include "third_party/blink/renderer/platform/heap/garbage_collected.h" #include "third_party/blink/renderer/platform/weborigin/kurl.h" #include "third_party/blink/renderer/platform/wtf/vector.h" namespace blink { class PresentationAvailabilityObserver; // Maintains the states of PresentationAvailability objects in a frame. It is // also responsible for querying the availability values from // PresentationService for the URLs given in a PresentationRequest. As an // optimization, the result will be cached and shared with other // PresentationRequests containing the same URL. PresentationAvailabilityState // is owned by PresentationController in the same frame. // TODO(crbug.com/780109): Improve encapsulation of PresentationAvailability and // this class by moving the multiple URL tracking logic to the former, and // consolidating this class's APIs to take repeating callbacks. class MODULES_EXPORT PresentationAvailabilityState final : public GarbageCollected<PresentationAvailabilityState> { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_PRESENTATION_AVAILABILITY_STATE_H_