OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/url_constants.h" | 5 #include "chrome/common/url_constants.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 146 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
147 const char kChromeUITabModalConfirmDialogURL[] = | 147 const char kChromeUITabModalConfirmDialogURL[] = |
148 "chrome://tab-modal-confirm-dialog/"; | 148 "chrome://tab-modal-confirm-dialog/"; |
149 #endif | 149 #endif |
150 | 150 |
151 #if BUILDFLAG(ENABLE_WEBRTC) | 151 #if BUILDFLAG(ENABLE_WEBRTC) |
152 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; | 152 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; |
153 #endif | 153 #endif |
154 | 154 |
155 #if defined(ENABLE_MEDIA_ROUTER) | |
156 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; | 155 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; |
157 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 156 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
158 const char kChromeUICastURL[] = "chrome://cast/"; | 157 const char kChromeUICastURL[] = "chrome://cast/"; |
159 #endif | 158 #endif |
160 #endif | |
161 | 159 |
162 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 160 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
163 const char kChromeUIDiscardsHost[] = "discards"; | 161 const char kChromeUIDiscardsHost[] = "discards"; |
164 const char kChromeUIDiscardsURL[] = "chrome://discards/"; | 162 const char kChromeUIDiscardsURL[] = "chrome://discards/"; |
165 #endif | 163 #endif |
166 | 164 |
167 // Add Chrome UI hosts here, in alphabetical order. | 165 // Add Chrome UI hosts here, in alphabetical order. |
168 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 166 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
169 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 167 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
170 const char kChromeUIAboutHost[] = "about"; | 168 const char kChromeUIAboutHost[] = "about"; |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 #endif | 336 #endif |
339 | 337 |
340 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 338 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
341 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | 339 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; |
342 #endif | 340 #endif |
343 | 341 |
344 #if BUILDFLAG(ENABLE_WEBRTC) | 342 #if BUILDFLAG(ENABLE_WEBRTC) |
345 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; | 343 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; |
346 #endif | 344 #endif |
347 | 345 |
348 #if defined(ENABLE_MEDIA_ROUTER) | |
349 const char kChromeUIMediaRouterHost[] = "media-router"; | 346 const char kChromeUIMediaRouterHost[] = "media-router"; |
350 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 347 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
351 const char kChromeUICastHost[] = "cast"; | 348 const char kChromeUICastHost[] = "cast"; |
352 #endif | 349 #endif |
353 #endif | |
354 | 350 |
355 // Settings sub pages. | 351 // Settings sub pages. |
356 | 352 |
357 // NOTE: Add sub page paths to kChromeSettingsSubPages in | 353 // NOTE: Add sub page paths to kChromeSettingsSubPages in |
358 // chrome_autocomplete_provider_client.cc to be listed by the built-in | 354 // chrome_autocomplete_provider_client.cc to be listed by the built-in |
359 // AutocompleteProvider. | 355 // AutocompleteProvider. |
360 | 356 |
361 const char kAutofillSubPage[] = "autofill"; | 357 const char kAutofillSubPage[] = "autofill"; |
362 const char kClearBrowserDataSubPage[] = "clearBrowserData"; | 358 const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
363 const char kContentSettingsSubPage[] = "content"; | 359 const char kContentSettingsSubPage[] = "content"; |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 #endif | 820 #endif |
825 | 821 |
826 const char kChooserUsbOverviewURL[] = | 822 const char kChooserUsbOverviewURL[] = |
827 "https://support.google.com/chrome?p=webusb"; | 823 "https://support.google.com/chrome?p=webusb"; |
828 | 824 |
829 #if defined(OS_CHROMEOS) | 825 #if defined(OS_CHROMEOS) |
830 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 826 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
831 #endif | 827 #endif |
832 | 828 |
833 } // namespace chrome | 829 } // namespace chrome |
OLD | NEW |