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 "googleurl/src/url_util.h" | 7 #include "googleurl/src/url_util.h" |
8 | 8 |
9 namespace chrome { | 9 namespace chrome { |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const char kChromeUINetInternalsURL[] = "chrome://net-internals/"; | 58 const char kChromeUINetInternalsURL[] = "chrome://net-internals/"; |
59 const char kChromeUINewProfile[] = "chrome://newprofile/"; | 59 const char kChromeUINewProfile[] = "chrome://newprofile/"; |
60 const char kChromeUINewTabURL[] = "chrome://newtab/"; | 60 const char kChromeUINewTabURL[] = "chrome://newtab/"; |
61 const char kChromeUIOmniboxURL[] = "chrome://omnibox/"; | 61 const char kChromeUIOmniboxURL[] = "chrome://omnibox/"; |
62 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/"; | 62 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/"; |
63 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 63 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
64 const char kChromeUIPolicyURL[] = "chrome://policy/"; | 64 const char kChromeUIPolicyURL[] = "chrome://policy/"; |
65 const char kChromeUIProfileSigninConfirmationURL[] = | 65 const char kChromeUIProfileSigninConfirmationURL[] = |
66 "chrome://profile-signin-confirmation/"; | 66 "chrome://profile-signin-confirmation/"; |
67 const char kChromeUIPrintURL[] = "chrome://print/"; | 67 const char kChromeUIPrintURL[] = "chrome://print/"; |
| 68 const char kChromeUIRestartURL[] = "chrome://restart/"; |
68 const char kChromeUISessionFaviconURL[] = "chrome://session-favicon/"; | 69 const char kChromeUISessionFaviconURL[] = "chrome://session-favicon/"; |
69 const char kChromeUISettingsURL[] = "chrome://settings/"; | 70 const char kChromeUISettingsURL[] = "chrome://settings/"; |
70 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/"; | 71 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/"; |
71 const char kChromeUISuggestionsInternalsURL[] = | 72 const char kChromeUISuggestionsInternalsURL[] = |
72 "chrome://suggestions-internals/"; | 73 "chrome://suggestions-internals/"; |
73 const char kChromeUISSLClientCertificateSelectorURL[] = "chrome://select-cert/"; | 74 const char kChromeUISSLClientCertificateSelectorURL[] = "chrome://select-cert/"; |
74 const char kChromeUITaskManagerURL[] = "chrome://tasks/"; | 75 const char kChromeUITaskManagerURL[] = "chrome://tasks/"; |
75 const char kChromeUITermsURL[] = "chrome://terms/"; | 76 const char kChromeUITermsURL[] = "chrome://terms/"; |
76 const char kChromeUIThemeURL[] = "chrome://theme/"; | 77 const char kChromeUIThemeURL[] = "chrome://theme/"; |
77 const char kChromeUIThumbnailURL[] = "chrome://thumb/"; | 78 const char kChromeUIThumbnailURL[] = "chrome://thumb/"; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const char kChromeUIOmniboxHost[] = "omnibox"; | 187 const char kChromeUIOmniboxHost[] = "omnibox"; |
187 const char kChromeUIPerformanceMonitorHost[] = "performance"; | 188 const char kChromeUIPerformanceMonitorHost[] = "performance"; |
188 const char kChromeUIPluginsHost[] = "plugins"; | 189 const char kChromeUIPluginsHost[] = "plugins"; |
189 const char kChromeUIPolicyHost[] = "policy"; | 190 const char kChromeUIPolicyHost[] = "policy"; |
190 const char kChromeUIProfileSigninConfirmationHost[] = | 191 const char kChromeUIProfileSigninConfirmationHost[] = |
191 "profile-signin-confirmation"; | 192 "profile-signin-confirmation"; |
192 const char kChromeUIPredictorsHost[] = "predictors"; | 193 const char kChromeUIPredictorsHost[] = "predictors"; |
193 const char kChromeUIPrintHost[] = "print"; | 194 const char kChromeUIPrintHost[] = "print"; |
194 const char kChromeUIProfilerHost[] = "profiler"; | 195 const char kChromeUIProfilerHost[] = "profiler"; |
195 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; | 196 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
| 197 const char kChromeUIRestartHost[] = "restart"; |
196 const char kChromeUISessionFaviconHost[] = "session-favicon"; | 198 const char kChromeUISessionFaviconHost[] = "session-favicon"; |
197 const char kChromeUISettingsHost[] = "settings"; | 199 const char kChromeUISettingsHost[] = "settings"; |
198 const char kChromeUISettingsFrameHost[] = "settings-frame"; | 200 const char kChromeUISettingsFrameHost[] = "settings-frame"; |
199 const char kChromeUIShorthangHost[] = "shorthang"; | 201 const char kChromeUIShorthangHost[] = "shorthang"; |
200 const char kChromeUISignInInternalsHost[] = "signin-internals"; | 202 const char kChromeUISignInInternalsHost[] = "signin-internals"; |
201 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals"; | 203 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals"; |
202 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert"; | 204 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert"; |
203 const char kChromeUIStatsHost[] = "stats"; | 205 const char kChromeUIStatsHost[] = "stats"; |
204 const char kChromeUISyncHost[] = "sync"; | 206 const char kChromeUISyncHost[] = "sync"; |
205 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals"; | 207 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals"; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 507 |
506 const char* const kChromeDebugURLs[] = { | 508 const char* const kChromeDebugURLs[] = { |
507 content::kChromeUICrashURL, | 509 content::kChromeUICrashURL, |
508 content::kChromeUIKillURL, | 510 content::kChromeUIKillURL, |
509 content::kChromeUIHangURL, | 511 content::kChromeUIHangURL, |
510 content::kChromeUIShorthangURL, | 512 content::kChromeUIShorthangURL, |
511 content::kChromeUIGpuCleanURL, | 513 content::kChromeUIGpuCleanURL, |
512 content::kChromeUIGpuCrashURL, | 514 content::kChromeUIGpuCrashURL, |
513 content::kChromeUIGpuHangURL, | 515 content::kChromeUIGpuHangURL, |
514 content::kChromeUIPpapiFlashCrashURL, | 516 content::kChromeUIPpapiFlashCrashURL, |
515 content::kChromeUIPpapiFlashHangURL | 517 content::kChromeUIPpapiFlashHangURL, |
| 518 chrome::kChromeUIRestartURL |
516 }; | 519 }; |
517 const int kNumberOfChromeDebugURLs = | 520 const int kNumberOfChromeDebugURLs = |
518 static_cast<int>(arraysize(kChromeDebugURLs)); | 521 static_cast<int>(arraysize(kChromeDebugURLs)); |
519 | 522 |
520 const char kExtensionResourceScheme[] = "chrome-extension-resource"; | 523 const char kExtensionResourceScheme[] = "chrome-extension-resource"; |
521 | 524 |
522 const char kChromeSearchScheme[] = "chrome-search"; | 525 const char kChromeSearchScheme[] = "chrome-search"; |
523 const char kChromeSearchLocalNtpHost[] = "local-ntp"; | 526 const char kChromeSearchLocalNtpHost[] = "local-ntp"; |
524 const char kChromeSearchLocalNtpUrl[] = | 527 const char kChromeSearchLocalNtpUrl[] = |
525 "chrome-search://local-ntp/local-ntp.html"; | 528 "chrome-search://local-ntp/local-ntp.html"; |
526 const char kChromeSearchLocalGoogleNtpUrl[] = | 529 const char kChromeSearchLocalGoogleNtpUrl[] = |
527 "chrome-search://local-ntp/local-ntp.html?isGoogle"; | 530 "chrome-search://local-ntp/local-ntp.html?isGoogle"; |
528 | 531 |
529 const char kChromeSearchSuggestionHost[] = "suggestion"; | 532 const char kChromeSearchSuggestionHost[] = "suggestion"; |
530 const char kChromeSearchSuggestionUrl[] = "chrome-search://suggestion/"; | 533 const char kChromeSearchSuggestionUrl[] = "chrome-search://suggestion/"; |
531 | 534 |
532 const char kChromeSearchMostVisitedHost[] = "most-visited"; | 535 const char kChromeSearchMostVisitedHost[] = "most-visited"; |
533 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/"; | 536 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/"; |
534 | 537 |
535 // Google SafeSearch query parameters. | 538 // Google SafeSearch query parameters. |
536 const char kSafeSearchSafeParameter[] = "safe=active"; | 539 const char kSafeSearchSafeParameter[] = "safe=active"; |
537 const char kSafeSearchSsuiParameter[] = "ssui=on"; | 540 const char kSafeSearchSsuiParameter[] = "ssui=on"; |
538 | 541 |
539 const char kMediaAccessLearnMoreUrl[] = | 542 const char kMediaAccessLearnMoreUrl[] = |
540 "https://support.google.com/chrome/?p=ib_access_cam_mic"; | 543 "https://support.google.com/chrome/?p=ib_access_cam_mic"; |
541 | 544 |
542 } // namespace chrome | 545 } // namespace chrome |
OLD | NEW |