blob: 4bd04c6da32389addf86909926b3ec6338575942 [file] [log] [blame]
// Copyright 2017 The Fuchsia 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 fuchsia.modular;
using fuchsia.auth;
/// An instance of this service is exposed to agents in their namespace.
protocol AgentContext {
/// DEPRECATED: ComponentContext is now available in the
/// namespace/environment for Modules.
GetComponentContext(request<ComponentContext> request);
/// Connects to an EntityReferenceFactory for this Agent. Entity references
/// obtained from this EntityReferenceFactory will be resolved back to this
/// Agent.
GetEntityReferenceFactory(request<EntityReferenceFactory> request);
/// The auth token manager this Agent may use for accessing external services.
GetTokenManager(request<fuchsia.auth.TokenManager> request);