url_constants.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Contains constants for known URLs and portions thereof.
  5. // Except for WebUI UI/Host/SubPage constants. Those go in
  6. // chrome/common/webui_url_constants.h.
  7. //
  8. // - The constants are divided into sections: Cross platform, platform-specific,
  9. // and feature-specific.
  10. // - When adding platform/feature specific constants, if there already exists an
  11. // appropriate #if block, use that.
  12. // - Keep the constants sorted by name within its section.
  13. // - Use the same order in this header and url_constants.cc.
  14. #ifndef CHROME_COMMON_URL_CONSTANTS_H_
  15. #define CHROME_COMMON_URL_CONSTANTS_H_
  16. #include <stddef.h>
  17. #include "build/build_config.h"
  18. #include "build/chromeos_buildflags.h"
  19. #include "chrome/common/buildflags.h"
  20. #include "chrome/common/webui_url_constants.h"
  21. #include "content/public/common/url_constants.h"
  22. #include "net/net_buildflags.h"
  23. #include "ppapi/buildflags/buildflags.h"
  24. namespace chrome {
  25. // "Learn more" URL linked in the dialog to cast using a code.
  26. extern const char kAccessCodeCastLearnMoreURL[];
  27. // "Learn more" URL for accessibility image labels, linked from the permissions
  28. // dialog shown when a user enables the feature.
  29. extern const char kAccessibilityLabelsLearnMoreURL[];
  30. // "Learn more" URL for when profile settings are automatically reset.
  31. extern const char kAutomaticSettingsResetLearnMoreURL[];
  32. // "Learn more" URL for Advanced Protection download warnings.
  33. extern const char kAdvancedProtectionDownloadLearnMoreURL[];
  34. // "Chrome Settings" URL for website notifications linked out from OSSettings.
  35. extern const char kAppNotificationsBrowserSettingsURL[];
  36. // The URL for providing help when the Bluetooth adapter is off.
  37. extern const char kBluetoothAdapterOffHelpURL[];
  38. // "Learn more" URL shown in the dialog to enable cloud services for Cast.
  39. extern const char kCastCloudServicesHelpURL[];
  40. // The URL for the help center article to show when no Cast destination has been
  41. // found.
  42. extern const char kCastNoDestinationFoundURL[];
  43. // The URL for the WebHID API help center article.
  44. extern const char kChooserHidOverviewUrl[];
  45. // The URL for the Web Serial API help center article.
  46. extern const char kChooserSerialOverviewUrl[];
  47. // The URL for the WebUsb help center article.
  48. extern const char kChooserUsbOverviewURL[];
  49. // Link to the forum for Chrome Beta.
  50. extern const char kChromeBetaForumURL[];
  51. // The URL for the help center article to fix Chrome update problems.
  52. extern const char kChromeFixUpdateProblems[];
  53. // General help links for Chrome, opened using various actions.
  54. extern const char kChromeHelpViaKeyboardURL[];
  55. extern const char kChromeHelpViaMenuURL[];
  56. extern const char kChromeHelpViaWebUIURL[];
  57. #if BUILDFLAG(IS_CHROMEOS_ASH)
  58. extern const char kChromeOsHelpViaWebUIURL[];
  59. #endif
  60. // The isolated-app: scheme is used for Isolated Web Apps. A public explainer
  61. // can be found here: https://github.com/reillyeon/isolated-web-apps
  62. extern const char kIsolatedAppScheme[];
  63. // The chrome-native: scheme is used show pages rendered with platform specific
  64. // widgets instead of using HTML.
  65. extern const char kChromeNativeScheme[];
  66. // Pages under chrome-search.
  67. extern const char kChromeSearchLocalNtpHost[];
  68. // Host and URL for most visited iframes used on the Instant Extended NTP.
  69. extern const char kChromeSearchMostVisitedHost[];
  70. extern const char kChromeSearchMostVisitedUrl[];
  71. // URL for NTP custom background image selected from the user's machine and
  72. // filename for the version of the file in the Profile directory
  73. extern const char kChromeUIUntrustedNewTabPageBackgroundUrl[];
  74. extern const char kChromeUIUntrustedNewTabPageBackgroundFilename[];
  75. // Page under chrome-search.
  76. extern const char kChromeSearchRemoteNtpHost[];
  77. // The chrome-search: scheme is served by the same backend as chrome:. However,
  78. // only specific URLDataSources are enabled to serve requests via the
  79. // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its
  80. // callers for details. Note that WebUIBindings should never be granted to
  81. // chrome-search: pages. chrome-search: pages are displayable but not readable
  82. // by external search providers (that are rendered by Instant renderer
  83. // processes), and neither displayable nor readable by normal (non-Instant) web
  84. // pages. To summarize, a non-Instant process, when trying to access
  85. // 'chrome-search://something', will bump up against the following:
  86. //
  87. // 1. Renderer: The display-isolated check in WebKit will deny the request,
  88. // 2. Browser: Assuming they got by #1, the scheme checks in
  89. // URLDataSource::ShouldServiceRequest will deny the request,
  90. // 3. Browser: for specific sub-classes of URLDataSource, like ThemeSource
  91. // there are additional Instant-PID checks that make sure the request is
  92. // coming from a blessed Instant process, and deny the request.
  93. extern const char kChromeSearchScheme[];
  94. // This is the base URL of content that can be embedded in chrome://new-tab-page
  95. // using an <iframe>. The embedded untrusted content can make web requests and
  96. // can include content that is from an external source.
  97. extern const char kChromeUIUntrustedNewTabPageUrl[];
  98. // The URL for the Chromium project used in the About dialog.
  99. extern const char kChromiumProjectURL[];
  100. extern const char kContentSettingsExceptionsLearnMoreURL[];
  101. // "Learn more" URL for cookies.
  102. extern const char kCookiesSettingsHelpCenterURL[];
  103. // "Learn more" URL for "Aw snap" page when showing "Reload" button.
  104. extern const char kCrashReasonURL[];
  105. // "Learn more" URL for "Aw snap" page when showing "Send feedback" button.
  106. extern const char kCrashReasonFeedbackDisplayedURL[];
  107. // "Learn more" URL for the "Do not track" setting in the privacy section.
  108. extern const char kDoNotTrackLearnMoreURL[];
  109. // The URL for the "Learn more" page for interrupted downloads.
  110. extern const char kDownloadInterruptedLearnMoreURL[];
  111. // The URL for the "Learn more" page for download scanning.
  112. extern const char kDownloadScanningLearnMoreURL[];
  113. // "Learn more" URL for the Settings API, NTP bubble and other settings bubbles
  114. // showing which extension is controlling them.
  115. extern const char kExtensionControlledSettingLearnMoreURL[];
  116. // URL used to indicate that an extension resource load request was invalid.
  117. extern const char kExtensionInvalidRequestURL[];
  118. // Url to a blogpost about Flash deprecation.
  119. extern const char kFlashDeprecationLearnMoreURL[];
  120. // URL of the Google account language selection page.
  121. extern const char kGoogleAccountLanguagesURL[];
  122. // URL of the 'Activity controls' section of the privacy settings page.
  123. extern const char kGoogleAccountActivityControlsURL[];
  124. // URL of the 'Activity controls' section of the privacy settings page, with
  125. // privacy guide parameters and a link for users to manage data.
  126. extern const char kGoogleAccountActivityControlsURLInPrivacyGuide[];
  127. // URL of the Google Account.
  128. extern const char kGoogleAccountURL[];
  129. // URL of the Google Account chooser.
  130. extern const char kGoogleAccountChooserURL[];
  131. // URL of the Google Account page showing the known user devices.
  132. extern const char kGoogleAccountDeviceActivityURL[];
  133. // URL of the Google Password Manager.
  134. extern const char kGooglePasswordManagerURL[];
  135. // URL of the Google Photos.
  136. extern const char kGooglePhotosURL[];
  137. // The URL for the "Learn more" page for the usage/crash reporting option in the
  138. // first run dialog.
  139. extern const char kLearnMoreReportingURL[];
  140. // The URL for the Learn More page about policies and enterprise enrollment.
  141. extern const char kManagedUiLearnMoreUrl[];
  142. // The URL for the "Learn more" page for mixed content download blocking.
  143. extern const char kMixedContentDownloadBlockingLearnMoreUrl[];
  144. // "myactivity.google.com" URL for the history checkbox in ClearBrowsingData.
  145. extern const char kMyActivityUrlInClearBrowsingData[];
  146. // Help URL for the Omnibox setting.
  147. extern const char kOmniboxLearnMoreURL[];
  148. // "What do these mean?" URL for the Page Info bubble.
  149. extern const char kPageInfoHelpCenterURL[];
  150. // Help URL for the bulk password check.
  151. extern const char kPasswordCheckLearnMoreURL[];
  152. // Help URL for password generation.
  153. extern const char kPasswordGenerationLearnMoreURL[];
  154. extern const char kPasswordManagerLearnMoreURL[];
  155. // Help URL for the Payment methods page of the Google Pay site.
  156. extern const char kPaymentMethodsURL[];
  157. extern const char kPaymentMethodsLearnMoreURL[];
  158. // "Learn more" URL for the Privacy section under Options.
  159. extern const char kPrivacyLearnMoreURL[];
  160. // The URL for the Learn More link of the non-CWS bubble.
  161. extern const char kRemoveNonCWSExtensionURL[];
  162. // "Learn more" URL for resetting profile preferences.
  163. extern const char kResetProfileSettingsLearnMoreURL[];
  164. // "Learn more" URL for Safebrowsing
  165. extern const char kSafeBrowsingHelpCenterURL[];
  166. // "Learn more" URL for safety tip bubble.
  167. extern const char kSafetyTipHelpCenterURL[];
  168. // Google search history URL that leads users of the CBD dialog to their search
  169. // history in their Google account.
  170. extern const char kSearchHistoryUrlInClearBrowsingData[];
  171. // The URL for the "See more security tips" with advices how to create a strong
  172. // password.
  173. extern const char kSeeMoreSecurityTipsURL[];
  174. // Help URL for the settings page's search feature.
  175. extern const char kSettingsSearchHelpURL[];
  176. // The URL for the Learn More page about Sync and Google services.
  177. extern const char kSyncAndGoogleServicesLearnMoreURL[];
  178. // The URL for the "Learn more" page on sync encryption.
  179. extern const char kSyncEncryptionHelpURL[];
  180. // The URL for the "Learn more" link when there is a sync error.
  181. extern const char kSyncErrorsHelpURL[];
  182. extern const char kSyncGoogleDashboardURL[];
  183. // The URL for the "Learn more" page for sync setup on the personal stuff page.
  184. extern const char kSyncLearnMoreURL[];
  185. // The URL for the "Learn more" link in the enterprise disclaimer for managed
  186. // profile in the Signin Intercept bubble.
  187. extern const char kSigninInterceptManagedDisclaimerLearnMoreURL[];
  188. #if !BUILDFLAG(IS_ANDROID)
  189. // The URL for the trusted vault sync passphrase opt in.
  190. extern const char kSyncTrustedVaultOptInURL[];
  191. #endif
  192. // The URL for the "Learn more" link for the trusted vault sync passphrase.
  193. extern const char kSyncTrustedVaultLearnMoreURL[];
  194. extern const char kUpgradeHelpCenterBaseURL[];
  195. // The URL for the "Learn more" link for nearby share.
  196. extern const char kNearbyShareLearnMoreURL[];
  197. // Help center URL for who the account administrator is.
  198. extern const char kWhoIsMyAdministratorHelpURL[];
  199. // The URL for the "Learn more" link about CWS Enhanced Safe Browsing.
  200. extern const char kCwsEnhancedSafeBrowsingLearnMoreURL[];
  201. #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_CHROMEOS_ASH)
  202. // "Learn more" URL for the enhanced playback notification dialog.
  203. extern const char kEnhancedPlaybackNotificationLearnMoreURL[];
  204. #endif
  205. #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
  206. // Chrome OS default pre-defined custom handlers
  207. extern const char kChromeOSDefaultMailtoHandler[];
  208. extern const char kChromeOSDefaultWebcalHandler[];
  209. #endif
  210. #if BUILDFLAG(IS_CHROMEOS_ASH)
  211. // Help center URL for Chrome OS Account Manager.
  212. extern const char kAccountManagerLearnMoreURL[];
  213. // The URL for the "Account recovery" page.
  214. extern const char kAccountRecoveryURL[];
  215. // The URL for the "How to add a new user account on a Chromebook" page.
  216. extern const char kAddNewUserURL[];
  217. // The URL for the "learn more" link for Google Play Store (ARC) settings.
  218. extern const char kAndroidAppsLearnMoreURL[];
  219. // Help center URL for ARC ADB sideloading.
  220. extern const char kArcAdbSideloadingLearnMoreURL[];
  221. // The URL for the "Learn more" link in the External storage preferences
  222. // settings.
  223. extern const char kArcExternalStorageLearnMoreURL[];
  224. // The path format to the localized offline ARC++ Privacy Policy.
  225. // Relative to |kChromeOSAssetPath|.
  226. extern const char kArcPrivacyPolicyPathFormat[];
  227. // The path format to the localized offline ARC++ Terms of Service.
  228. // Relative to |kChromeOSAssetPath|.
  229. extern const char kArcTermsPathFormat[];
  230. // The URL for the "Learn more" link during Bluetooth pairing.
  231. extern const char kBluetoothPairingLearnMoreUrl[];
  232. // Accessibility help link for Chrome.
  233. extern const char kChromeAccessibilityHelpURL[];
  234. extern const char kChromeOSAssetHost[];
  235. extern const char kChromeOSAssetPath[];
  236. extern const char kChromeOSCreditsPath[];
  237. // Chrome OS tablet gestures education help link for Chrome.
  238. extern const char kChromeOSGestureEducationHelpURL[];
  239. // Palette help link for Chrome.
  240. extern const char kChromePaletteHelpURL[];
  241. extern const char kCupsPrintLearnMoreURL[];
  242. extern const char kCupsPrintPPDLearnMoreURL[];
  243. // The URL for the "Learn more" link the the Easy Unlock settings.
  244. extern const char kEasyUnlockLearnMoreUrl[];
  245. // The URL for the help center article about redeeming Chromebook offers.
  246. extern const char kEchoLearnMoreURL[];
  247. // The URL for EOL notification
  248. extern const char kEolNotificationURL[];
  249. // The URL for Auto Update Policy.
  250. extern const char kAutoUpdatePolicyURL[];
  251. // The URL for providing more information about Google nameservers.
  252. extern const char kGoogleNameserversLearnMoreURL[];
  253. // The URL for the "learn more" link for Instant Tethering.
  254. extern const char kInstantTetheringLearnMoreURL[];
  255. // The URL for the "Learn more" link for Kerberos accounts.
  256. extern const char kKerberosAccountsLearnMoreURL[];
  257. // The URL for the "Learn more" link in the language settings.
  258. extern const char kLanguageSettingsLearnMoreUrl[];
  259. // The URL for the "Learn more" link in language settings regarding language
  260. // packs.
  261. extern const char kLanguagePacksLearnMoreURL[];
  262. // The URL for the Learn More page about enterprise enrolled devices.
  263. extern const char kLearnMoreEnterpriseURL[];
  264. // The URL for the Learn More page about Linux for Chromebooks.
  265. extern const char kLinuxAppsLearnMoreURL[];
  266. // The URL for the "Learn more" link for natural scrolling on ChromeOS.
  267. extern const char kNaturalScrollHelpURL[];
  268. // The URL for the "Learn more" link for touchpad haptic feedback on Chrome OS.
  269. extern const char kHapticFeedbackHelpURL[];
  270. // The URL path to offline OEM EULA.
  271. extern const char kOemEulaURLPath[];
  272. // Help URL for the OS settings page's search feature.
  273. extern const char kOsSettingsSearchHelpURL[];
  274. // The URL for the "Learn more" link in the peripheral data access protection
  275. // settings.
  276. extern const char kPeripheralDataAccessHelpURL[];
  277. // The URL path to offline ARC++ Terms of Service.
  278. extern const char kArcTermsURLPath[];
  279. // The URL path to offline ARC++ Privacy Policy.
  280. extern const char kArcPrivacyPolicyURLPath[];
  281. // The URL path to Online Google EULA.
  282. extern const char kGoogleEulaOnlineURLPath[];
  283. // The URL path to Online Chrome and Chrome OS terms of service.
  284. extern const char kCrosEulaOnlineURLPath[];
  285. // The URL for the "learn more" link for TPM firmware update.
  286. extern const char kTPMFirmwareUpdateLearnMoreURL[];
  287. // The URL for the "Learn more" page for the time zone settings page.
  288. extern const char kTimeZoneSettingsLearnMoreURL[];
  289. // The URL for the "Learn more" page for screen privacy protections.
  290. extern const char kSmartPrivacySettingsLearnMoreURL[];
  291. // The URL for the "Learn more" page for the network file shares settings page.
  292. extern const char kSmbSharesLearnMoreURL[];
  293. // The URL for the "Learn more" page for Suggested Content in the privacy page.
  294. extern const char kSuggestedContentLearnMoreURL[];
  295. // The URL to a support article with more information about gestures available
  296. // in tablet mode on Chrome OS (gesture to go to home screen, overview, or to go
  297. // back). Used as a "Learn more" link URL for the accessibility option to shelf
  298. // navigation buttons in tablet mode (the buttons are hidden by default in
  299. // favour of the gestures in question).
  300. extern const char kTabletModeGesturesLearnMoreURL[];
  301. // The URL for the help center article about Wi-Fi sync.
  302. extern const char kWifiSyncLearnMoreURL[];
  303. // The URL for the help center article about hidden Wi-Fi networks.
  304. extern const char kWifiHiddenNetworkURL[];
  305. // The URL for contacts management in Nearby Share feature.
  306. extern const char kNearbyShareManageContactsURL[];
  307. // The URL for the help center article about fingerprint on Chrome OS devices.
  308. extern const char kFingerprintLearnMoreURL[];
  309. #endif // BUILDFLAG(IS_CHROMEOS_ASH)
  310. #if BUILDFLAG(IS_MAC)
  311. // "Learn more" URL for the enterprise sign-in confirmation dialog.
  312. extern const char kChromeEnterpriseSignInLearnMoreURL[];
  313. // The URL for the "learn more" link on the macOS version obsolescence infobar.
  314. extern const char kMacOsObsoleteURL[];
  315. #endif
  316. #if BUILDFLAG(IS_WIN)
  317. // The URL for the Learn More link in the Chrome Cleanup settings card.
  318. extern const char kChromeCleanerLearnMoreURL[];
  319. // The URL for the Windows XP/Vista deprecation help center article.
  320. extern const char kWindowsXPVistaDeprecationURL[];
  321. #endif
  322. // "Learn more" URL for the one click signin infobar.
  323. extern const char kChromeSyncLearnMoreURL[];
  324. #if BUILDFLAG(ENABLE_PLUGINS)
  325. // The URL for the "Learn more" page for the outdated plugin infobar.
  326. extern const char kOutdatedPluginLearnMoreURL[];
  327. #endif
  328. // "Learn more" URL for the phone hub notifications and apps access setup.
  329. extern const char kPhoneHubPermissionLearnMoreURL[];
  330. #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
  331. BUILDFLAG(IS_FUCHSIA)
  332. // "Learn more" URL for the chrome apps deprecation dialog.
  333. extern const char kChromeAppsDeprecationLearnMoreURL[];
  334. #endif
  335. #if BUILDFLAG(CHROME_ROOT_STORE_SUPPORTED)
  336. extern const char kChromeRootStoreSettingsHelpCenterURL[];
  337. #endif
  338. // Please do not append entries here. See the comments at the top of the file.
  339. } // namespace chrome
  340. #endif // CHROME_COMMON_URL_CONSTANTS_H_