chromium/content/public/common/url_constants.h

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

#ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
#define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_

#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "device/vr/buildflags/buildflags.h"
#include "url/url_constants.h"

// Contains constants for known URLs and portions thereof.

namespace content {

// Canonical schemes you can use as input to GURL.SchemeIs().
// TODO(jam): some of these don't below in the content layer, but are accessed
// from there.
inline constexpr char kChromeDevToolsScheme[] =;
inline constexpr char kChromeErrorScheme[] =;
inline constexpr char kChromeUIScheme[] =;  // Used for WebUIs.
inline constexpr char kChromeUIUntrustedScheme[] =;
inline constexpr char kViewSourceScheme[] =;
#if BUILDFLAG(IS_CHROMEOS_ASH)
inline constexpr char kExternalFileScheme[] = "externalfile";
#endif
#if BUILDFLAG(IS_ANDROID)
inline constexpr char kAndroidAppScheme[] = "android-app";
#endif

// The `googlechrome:` scheme is registered on several platforms, and is
// both interesting and dangerous.
inline constexpr char kGoogleChromeScheme[] =;

inline constexpr char kChromeUIAttributionInternalsHost[] =;
inline constexpr char kChromeUIBlobInternalsHost[] =;
inline constexpr char kChromeUIBrowserCrashHost[] =;
inline constexpr char kChromeUIDinoHost[] =;
inline constexpr char kChromeUIGpuHost[] =;
inline constexpr char kChromeUIHistogramHost[] =;
inline constexpr char kChromeUIIndexedDBInternalsHost[] =;
inline constexpr char kChromeUIMediaInternalsHost[] =;
inline constexpr char kChromeUIMemoryExhaustHost[] =;
inline constexpr char kChromeUINetworkErrorHost[] =;
inline constexpr char kChromeUINetworkErrorsListingHost[] =;
inline constexpr char kChromeUIPrivateAggregationInternalsHost[] =;
inline constexpr char kChromeUIProcessInternalsHost[] =;
inline constexpr char kChromeUIQuotaInternalsHost[] =;
inline constexpr char kChromeUIResourcesHost[] =;
inline constexpr char kChromeUIServiceWorkerInternalsHost[] =;
inline constexpr char kChromeUITracesInternalsHost[] =;
inline constexpr char kChromeUITracingHost[] =;
inline constexpr char kChromeUIUkmHost[] =;
inline constexpr char kChromeUIUntrustedResourcesURL[] =;
inline constexpr char kChromeUIWebRTCInternalsHost[] =;
#if BUILDFLAG(ENABLE_VR)
inline constexpr char kChromeUIWebXrInternalsHost[] =;
#endif

// Special URL used to start a navigation to an error page.
// This error URL is loaded in normal web renderer processes, so it should not
// have a chrome:// scheme that might let it be confused with a WebUI page.
inline constexpr char kUnreachableWebDataURL[] =;

// Special URL used to rewrite URLs coming from untrusted processes, when the
// source process is not allowed access to the initially requested URL.
inline constexpr char kBlockedURL[] =;

}  // namespace content

#endif  // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_