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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 const char kChromeUIGestureConfigHost[] = "gesture"; | 133 const char kChromeUIGestureConfigHost[] = "gesture"; |
134 const char kChromeUISalsaURL[] = "chrome://salsa/"; | 134 const char kChromeUISalsaURL[] = "chrome://salsa/"; |
135 const char kChromeUISalsaHost[] = "salsa"; | 135 const char kChromeUISalsaHost[] = "salsa"; |
136 #endif | 136 #endif |
137 | 137 |
138 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 138 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
139 const char kChromeUITabModalConfirmDialogURL[] = | 139 const char kChromeUITabModalConfirmDialogURL[] = |
140 "chrome://tab-modal-confirm-dialog/"; | 140 "chrome://tab-modal-confirm-dialog/"; |
141 #endif | 141 #endif |
142 | 142 |
| 143 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 144 const char kChromeUICopresenceURL[] = "chrome://copresence/"; |
| 145 #endif |
| 146 |
143 #if defined(ENABLE_WEBRTC) | 147 #if defined(ENABLE_WEBRTC) |
144 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; | 148 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; |
145 #endif | 149 #endif |
146 | 150 |
147 // Add Chrome UI hosts here, in alphabetical order. | 151 // Add Chrome UI hosts here, in alphabetical order. |
148 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 152 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
149 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 153 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
150 const char kChromeUIAboutHost[] = "about"; | 154 const char kChromeUIAboutHost[] = "about"; |
151 const char kChromeUIBlankHost[] = "blank"; | 155 const char kChromeUIBlankHost[] = "blank"; |
152 const char kChromeUIAppLauncherPageHost[] = "apps"; | 156 const char kChromeUIAppLauncherPageHost[] = "apps"; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 "/opt/google/chrome/resources/about_os_credits.html"; | 312 "/opt/google/chrome/resources/about_os_credits.html"; |
309 | 313 |
310 const char kChromeOSAssetHost[] = "chromeos-asset"; | 314 const char kChromeOSAssetHost[] = "chromeos-asset"; |
311 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/"; | 315 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/"; |
312 #endif | 316 #endif |
313 | 317 |
314 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 318 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
315 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | 319 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; |
316 #endif | 320 #endif |
317 | 321 |
| 322 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 323 const char kChromeUICopresenceHost[] = "copresence"; |
| 324 #endif |
| 325 |
318 #if defined(ENABLE_WEBRTC) | 326 #if defined(ENABLE_WEBRTC) |
319 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; | 327 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; |
320 #endif | 328 #endif |
321 | 329 |
322 // Option sub pages. | 330 // Option sub pages. |
323 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be | 331 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be |
324 // listed by the built-in AutocompleteProvider. | 332 // listed by the built-in AutocompleteProvider. |
325 const char kAutofillSubPage[] = "autofill"; | 333 const char kAutofillSubPage[] = "autofill"; |
326 const char kClearBrowserDataSubPage[] = "clearBrowserData"; | 334 const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
327 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; | 335 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 kChromeUIHelpHost, | 623 kChromeUIHelpHost, |
616 kChromeUIInspectHost, | 624 kChromeUIInspectHost, |
617 kChromeUIPluginsHost, | 625 kChromeUIPluginsHost, |
618 kChromeUIQuotaInternalsHost, | 626 kChromeUIQuotaInternalsHost, |
619 kChromeUISettingsHost, | 627 kChromeUISettingsHost, |
620 kChromeUISystemInfoHost, | 628 kChromeUISystemInfoHost, |
621 kChromeUIUberHost, | 629 kChromeUIUberHost, |
622 #endif | 630 #endif |
623 #if defined(OS_ANDROID) || defined(OS_IOS) | 631 #if defined(OS_ANDROID) || defined(OS_IOS) |
624 kChromeUINetExportHost, | 632 kChromeUINetExportHost, |
| 633 #else // non-mobile |
| 634 kChromeUICopresenceHost, |
625 #endif | 635 #endif |
626 #if defined(OS_CHROMEOS) | 636 #if defined(OS_CHROMEOS) |
627 kChromeUICertificateManagerHost, | 637 kChromeUICertificateManagerHost, |
628 kChromeUIChooseMobileNetworkHost, | 638 kChromeUIChooseMobileNetworkHost, |
629 kChromeUICryptohomeHost, | 639 kChromeUICryptohomeHost, |
630 kChromeUIDeviceLogHost, | 640 kChromeUIDeviceLogHost, |
631 kChromeUIDiscardsHost, | 641 kChromeUIDiscardsHost, |
632 kChromeUIDriveInternalsHost, | 642 kChromeUIDriveInternalsHost, |
633 kChromeUIFirstRunHost, | 643 kChromeUIFirstRunHost, |
634 kChromeUIImageBurnerHost, | 644 kChromeUIImageBurnerHost, |
(...skipping 81 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 |