blob: a30c24810d1774a1a8c0a4d7b9053d2666505cce [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "content/common/content_export.h"
namespace content {
// A listener interface used for receiving updates on screen availability
// associated with a presentation URL from an embedder.
// See also PresentationServiceDelegate.
class CONTENT_EXPORT PresentationScreenAvailabilityListener {
virtual ~PresentationScreenAvailabilityListener() {}
// Returns the Presentation URL associated with this listener.
// Empty string means this object is listening for screen availability
// for "1-UA" mode, i.e. offscreen tab rendering.
virtual std::string GetPresentationUrl() const = 0;
// Called when screen availability for the associated Presentation URL has
// changed to |available|.
virtual void OnScreenAvailabilityChanged(bool available) = 0;
} // namespace content