blob: 93c23b1f81e981467ca1d2b97c18a8e631d03741 [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.
module echo.mojom;
import "mojo/public/mojom/base/shared_memory.mojom";
// Echos its input.
interface EchoService {
// Echos the passed-in string.
EchoString(string input) => (string echoed_input);
// Echos the passed-in string into the provided shared memory buffer.
EchoStringToSharedMemory(string input,
mojo_base.mojom.UnsafeSharedMemoryRegion region);
// Causes the service to disconnect itself.
// Forcibly crashes the service.