blob: 358d31b3814c2ed2c1368cbe9aa30d89e8e330cf [file] [log] [blame]
// Copyright 2017 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.
namespace content {
class WebContents;
// This interface allows communication between a PresentationReceiverWindow and
// its controller. The controller provides a WebContents instance for the
// window, and the window can tell the controller when it is closing.
class PresentationReceiverWindowDelegate {
// WebContents instance provided by the delegate to be displayed in the
// window.
virtual content::WebContents* web_contents() const = 0;
// Notifies the delegate that the window is closed so it can perform any
// necessary cleanup.
virtual void WindowClosed() = 0;
~PresentationReceiverWindowDelegate() = default;