blob: 4f5b5ab6c81e383634b03d7a20a4ef729a4700a4 [file] [log] [blame]
// Copyright 2018 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.
module ash.mojom;
import "components/account_id/interfaces/account_id.mojom";
// Performs browser-side functionality for the ContainedShell feature,
// e.g. launching a WebView to host the ContainedShell.
interface ContainedShellClient {
// Launch a contained shell experience for the current user, identified by
// |account_id|.
LaunchContainedShell(signin.mojom.AccountId account_id);
};
// Allows Ash and its consumers to interact with the ContainedShell
// feature, e.g. by requesting to launch the ContainedShell WebView.
// These requests are forwarded to the ContainedShellClient.
interface ContainedShellController {
// Provides a client for dispatching requests.
SetClient(ContainedShellClient client);
};