blob: ff3ea21acb2b47e448149def1dd4d1feed9d88c8 [file]
// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_API_CONSTANTS_H_
#define EXTENSIONS_BROWSER_API_CONSTANTS_H_
namespace extensions {
// Represents the extension API that performed a search redirect.
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
// LINT.IfChange(ExtensionSearchRedirectedByApi)
enum class ExtensionSearchRedirectedByApi {
kDeclarativeNetRequest = 0,
kTabsUpdate = 1,
kContentScript = 2,
kMaxValue = kContentScript,
};
// LINT.ThenChange(//tools/metrics/histograms/enums.xml:ExtensionSearchRedirectedByApi)
inline constexpr char kTabNotFoundError[] = "No tab with id: *.";
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_CONSTANTS_H_