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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 148 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
149 const char kChromeUITabModalConfirmDialogURL[] = | 149 const char kChromeUITabModalConfirmDialogURL[] = |
150 "chrome://tab-modal-confirm-dialog/"; | 150 "chrome://tab-modal-confirm-dialog/"; |
151 #endif | 151 #endif |
152 | 152 |
153 #if BUILDFLAG(ENABLE_WEBRTC) | 153 #if BUILDFLAG(ENABLE_WEBRTC) |
154 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; | 154 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; |
155 #endif | 155 #endif |
156 | 156 |
157 #if defined(ENABLE_MEDIA_ROUTER) | |
158 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; | 157 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; |
159 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 158 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
160 const char kChromeUICastURL[] = "chrome://cast/"; | 159 const char kChromeUICastURL[] = "chrome://cast/"; |
161 #endif | 160 #endif |
162 #endif | |
163 | 161 |
164 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) | 162 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
165 const char kChromeUIDiscardsHost[] = "discards"; | 163 const char kChromeUIDiscardsHost[] = "discards"; |
166 const char kChromeUIDiscardsURL[] = "chrome://discards/"; | 164 const char kChromeUIDiscardsURL[] = "chrome://discards/"; |
167 #endif | 165 #endif |
168 | 166 |
169 // Add Chrome UI hosts here, in alphabetical order. | 167 // Add Chrome UI hosts here, in alphabetical order. |
170 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 168 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
171 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 169 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
172 const char kChromeUIAboutHost[] = "about"; | 170 const char kChromeUIAboutHost[] = "about"; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 #endif | 339 #endif |
342 | 340 |
343 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 341 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
344 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | 342 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; |
345 #endif | 343 #endif |
346 | 344 |
347 #if BUILDFLAG(ENABLE_WEBRTC) | 345 #if BUILDFLAG(ENABLE_WEBRTC) |
348 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; | 346 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; |
349 #endif | 347 #endif |
350 | 348 |
351 #if defined(ENABLE_MEDIA_ROUTER) | |
352 const char kChromeUIMediaRouterHost[] = "media-router"; | 349 const char kChromeUIMediaRouterHost[] = "media-router"; |
353 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 350 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
354 const char kChromeUICastHost[] = "cast"; | 351 const char kChromeUICastHost[] = "cast"; |
355 #endif | 352 #endif |
356 #endif | |
357 | 353 |
358 // Settings sub pages. | 354 // Settings sub pages. |
359 | 355 |
360 // NOTE: Add sub page paths to kChromeSettingsSubPages in | 356 // NOTE: Add sub page paths to kChromeSettingsSubPages in |
361 // chrome_autocomplete_provider_client.cc to be listed by the built-in | 357 // chrome_autocomplete_provider_client.cc to be listed by the built-in |
362 // AutocompleteProvider. | 358 // AutocompleteProvider. |
363 | 359 |
364 const char kAutofillSubPage[] = "autofill"; | 360 const char kAutofillSubPage[] = "autofill"; |
365 const char kClearBrowserDataSubPage[] = "clearBrowserData"; | 361 const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
366 const char kContentSettingsSubPage[] = "content"; | 362 const char kContentSettingsSubPage[] = "content"; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 #endif | 830 #endif |
835 | 831 |
836 const char kChooserUsbOverviewURL[] = | 832 const char kChooserUsbOverviewURL[] = |
837 "https://support.google.com/chrome?p=webusb"; | 833 "https://support.google.com/chrome?p=webusb"; |
838 | 834 |
839 #if defined(OS_CHROMEOS) | 835 #if defined(OS_CHROMEOS) |
840 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 836 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
841 #endif | 837 #endif |
842 | 838 |
843 } // namespace chrome | 839 } // namespace chrome |
OLD | NEW |