chromium/components/media_router/common/mojom/route_request_result_code.mojom

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module media_router.mojom;

// Keep in sync with MediaRouteProviderResult enum in
// tools/metrics/histograms/enums.xml
enum RouteRequestResultCode {
  UNKNOWN_ERROR,
  OK,
  TIMED_OUT,
  ROUTE_NOT_FOUND,
  SINK_NOT_FOUND,
  INVALID_ORIGIN,
  DEPRECATED_OFF_THE_RECORD_MISMATCH,  // Deprecated.
  NO_SUPPORTED_PROVIDER,
  CANCELLED,
  ROUTE_ALREADY_EXISTS,
  DESKTOP_PICKER_FAILED,
  ROUTE_ALREADY_TERMINATED,
  REDUNDANT_REQUEST,
  USER_NOT_ALLOWED,
  NOTIFICATION_DISABLED,
  // New values must be added here.
};