blob: 1d72753bf1440576ad00fed82a5e22d3a87fb0d7 [file] [log] [blame]
// Copyright 2019 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.
library chromium.cast;
using chromium.web;
using fuchsia.web;
[Discoverable]
protocol CastChannel {
/// Receives an opened Cast |channel| from the Cast application.
/// Open() must not be called again until the preceding call has returned.
Open(fuchsia.web.MessagePort channel) -> ();
// TODO(crbug.com/946732): Remove this once callers have migrated to Open().
[Transitional="Deprecated method to migrate the fuchsia.web API."]
OnOpened(chromium.web.MessagePort channel) -> ();
};