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/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 const char kChromeUIGestureConfigHost[] = "gesture"; | 134 const char kChromeUIGestureConfigHost[] = "gesture"; |
135 const char kChromeUISalsaURL[] = "chrome://salsa/"; | 135 const char kChromeUISalsaURL[] = "chrome://salsa/"; |
136 const char kChromeUISalsaHost[] = "salsa"; | 136 const char kChromeUISalsaHost[] = "salsa"; |
137 #endif | 137 #endif |
138 | 138 |
139 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 139 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
140 const char kChromeUITabModalConfirmDialogURL[] = | 140 const char kChromeUITabModalConfirmDialogURL[] = |
141 "chrome://tab-modal-confirm-dialog/"; | 141 "chrome://tab-modal-confirm-dialog/"; |
142 #endif | 142 #endif |
143 | 143 |
| 144 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 145 const char kChromeUICopresenceURL[] = "chrome://copresence/"; |
| 146 #endif |
| 147 |
144 #if defined(ENABLE_WEBRTC) | 148 #if defined(ENABLE_WEBRTC) |
145 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; | 149 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; |
146 #endif | 150 #endif |
147 | 151 |
148 // Add Chrome UI hosts here, in alphabetical order. | 152 // Add Chrome UI hosts here, in alphabetical order. |
149 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 153 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
150 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 154 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
151 const char kChromeUIAboutHost[] = "about"; | 155 const char kChromeUIAboutHost[] = "about"; |
152 const char kChromeUIBlankHost[] = "blank"; | 156 const char kChromeUIBlankHost[] = "blank"; |
153 const char kChromeUIAppLauncherPageHost[] = "apps"; | 157 const char kChromeUIAppLauncherPageHost[] = "apps"; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 "/opt/google/chrome/resources/about_os_credits.html"; | 313 "/opt/google/chrome/resources/about_os_credits.html"; |
310 | 314 |
311 const char kChromeOSAssetHost[] = "chromeos-asset"; | 315 const char kChromeOSAssetHost[] = "chromeos-asset"; |
312 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/"; | 316 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/"; |
313 #endif | 317 #endif |
314 | 318 |
315 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 319 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
316 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | 320 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; |
317 #endif | 321 #endif |
318 | 322 |
| 323 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 324 const char kChromeUICopresenceHost[] = "copresence"; |
| 325 #endif |
| 326 |
319 #if defined(ENABLE_WEBRTC) | 327 #if defined(ENABLE_WEBRTC) |
320 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; | 328 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; |
321 #endif | 329 #endif |
322 | 330 |
323 // Option sub pages. | 331 // Option sub pages. |
324 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be | 332 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be |
325 // listed by the built-in AutocompleteProvider. | 333 // listed by the built-in AutocompleteProvider. |
326 const char kAutofillSubPage[] = "autofill"; | 334 const char kAutofillSubPage[] = "autofill"; |
327 const char kClearBrowserDataSubPage[] = "clearBrowserData"; | 335 const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
328 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; | 336 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 kChromeUIHelpHost, | 624 kChromeUIHelpHost, |
617 kChromeUIInspectHost, | 625 kChromeUIInspectHost, |
618 kChromeUIPluginsHost, | 626 kChromeUIPluginsHost, |
619 kChromeUIQuotaInternalsHost, | 627 kChromeUIQuotaInternalsHost, |
620 kChromeUISettingsHost, | 628 kChromeUISettingsHost, |
621 kChromeUISystemInfoHost, | 629 kChromeUISystemInfoHost, |
622 kChromeUIUberHost, | 630 kChromeUIUberHost, |
623 #endif | 631 #endif |
624 #if defined(OS_ANDROID) || defined(OS_IOS) | 632 #if defined(OS_ANDROID) || defined(OS_IOS) |
625 kChromeUINetExportHost, | 633 kChromeUINetExportHost, |
| 634 #else // non-mobile |
| 635 kChromeUICopresenceHost, |
626 #endif | 636 #endif |
627 #if defined(OS_CHROMEOS) | 637 #if defined(OS_CHROMEOS) |
628 kChromeUICertificateManagerHost, | 638 kChromeUICertificateManagerHost, |
629 kChromeUIChooseMobileNetworkHost, | 639 kChromeUIChooseMobileNetworkHost, |
630 kChromeUICryptohomeHost, | 640 kChromeUICryptohomeHost, |
631 kChromeUIDiscardsHost, | 641 kChromeUIDiscardsHost, |
632 kChromeUIDriveInternalsHost, | 642 kChromeUIDriveInternalsHost, |
633 kChromeUIFirstRunHost, | 643 kChromeUIFirstRunHost, |
634 kChromeUIImageBurnerHost, | 644 kChromeUIImageBurnerHost, |
635 kChromeUIKeyboardOverlayHost, | 645 kChromeUIKeyboardOverlayHost, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 "https://support.google.com/chrome/?p=ui_mac_32bit_support"; | 726 "https://support.google.com/chrome/?p=ui_mac_32bit_support"; |
717 #else | 727 #else |
718 ""; | 728 ""; |
719 #endif | 729 #endif |
720 #endif | 730 #endif |
721 | 731 |
722 const char kEasyUnlockLearnMoreUrl[] = | 732 const char kEasyUnlockLearnMoreUrl[] = |
723 "https://support.google.com/chromebook/?p=easy_unlock"; | 733 "https://support.google.com/chromebook/?p=easy_unlock"; |
724 | 734 |
725 } // namespace chrome | 735 } // namespace chrome |
OLD | NEW |