1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
content / public / browser / presentation_screen_availability_listener.h [blame]
// Copyright 2015 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_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_
#define CONTENT_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_
#include "content/common/content_export.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom.h"
#include "url/gurl.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 {
public:
virtual ~PresentationScreenAvailabilityListener() {}
// Returns the screen availability 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 GURL GetAvailabilityUrl() = 0;
// Called when screen availability for the associated Presentation URL has
// changed to |availability|.
virtual void OnScreenAvailabilityChanged(
blink::mojom::ScreenAvailability availability) = 0;
};
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SCREEN_AVAILABILITY_LISTENER_H_