OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/browser_about_handler.h" | 5 #include "chrome/browser/browser_about_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 102 } |
103 #endif | 103 #endif |
104 | 104 |
105 namespace { | 105 namespace { |
106 | 106 |
107 // Add paths here to be included in chrome://chrome-urls/. | 107 // Add paths here to be included in chrome://chrome-urls/. |
108 // These paths will also be suggested by BuiltinProvider. | 108 // These paths will also be suggested by BuiltinProvider. |
109 const char* const kChromePaths[] = { | 109 const char* const kChromePaths[] = { |
110 chrome::kChromeUIAppCacheInternalsHost, | 110 chrome::kChromeUIAppCacheInternalsHost, |
111 chrome::kChromeUIBlobInternalsHost, | 111 chrome::kChromeUIBlobInternalsHost, |
| 112 chrome::kChromeUIBookmarksHost, |
| 113 chrome::kChromeUICacheHost, |
112 chrome::kChromeUIChromeURLsHost, | 114 chrome::kChromeUIChromeURLsHost, |
113 chrome::kChromeUICrashesHost, | 115 chrome::kChromeUICrashesHost, |
114 chrome::kChromeUICreditsHost, | 116 chrome::kChromeUICreditsHost, |
115 chrome::kChromeUIDNSHost, | 117 chrome::kChromeUIDNSHost, |
| 118 chrome::kChromeUIDownloadsHost, |
| 119 chrome::kChromeUIExtensionsHost, |
116 chrome::kChromeUIFlagsHost, | 120 chrome::kChromeUIFlagsHost, |
117 chrome::kChromeUIFlashHost, | 121 chrome::kChromeUIFlashHost, |
118 chrome::kChromeUIGpuInternalsHost, | 122 chrome::kChromeUIGpuInternalsHost, |
119 chrome::kChromeUIHistogramsHost, | 123 chrome::kChromeUIHistogramsHost, |
| 124 chrome::kChromeUIHistoryHost, |
| 125 chrome::kChromeUIIPCHost, |
120 chrome::kChromeUIMemoryHost, | 126 chrome::kChromeUIMemoryHost, |
121 chrome::kChromeUINetInternalsHost, | 127 chrome::kChromeUINetInternalsHost, |
122 chrome::kChromeUINetworkViewCacheHost, | 128 chrome::kChromeUINetworkViewCacheHost, |
| 129 chrome::kChromeUINewTabHost, |
123 chrome::kChromeUIPluginsHost, | 130 chrome::kChromeUIPluginsHost, |
| 131 chrome::kChromeUIPrintHost, |
| 132 chrome::kChromeUIQuotaInternalsHost, |
| 133 chrome::kChromeUISessionsHost, |
124 chrome::kChromeUISettingsHost, | 134 chrome::kChromeUISettingsHost, |
125 chrome::kChromeUIStatsHost, | 135 chrome::kChromeUIStatsHost, |
126 chrome::kChromeUISyncInternalsHost, | 136 chrome::kChromeUISyncInternalsHost, |
127 chrome::kChromeUITCMallocHost, | 137 chrome::kChromeUITCMallocHost, |
128 chrome::kChromeUITermsHost, | 138 chrome::kChromeUITermsHost, |
129 chrome::kChromeUIVersionHost, | 139 chrome::kChromeUIVersionHost, |
| 140 chrome::kChromeUIWorkersHost, |
130 #ifdef TRACK_ALL_TASK_OBJECTS | 141 #ifdef TRACK_ALL_TASK_OBJECTS |
131 chrome::kChromeUITaskManagerHost, | 142 chrome::kChromeUITaskManagerHost, |
132 #endif | 143 #endif |
133 #if defined(OS_WIN) | 144 #if defined(OS_WIN) |
134 chrome::kChromeUIConflictsHost, | 145 chrome::kChromeUIConflictsHost, |
135 #endif | 146 #endif |
136 #if defined(OS_LINUX) | 147 #if defined(OS_LINUX) |
| 148 chrome::kChromeUILinuxProxyConfigHost, |
137 chrome::kChromeUISandboxHost, | 149 chrome::kChromeUISandboxHost, |
138 #endif | 150 #endif |
139 #if defined(OS_CHROMEOS) | 151 #if defined(OS_CHROMEOS) |
| 152 chrome::kChromeUIActiveDownloadsHost, |
| 153 chrome::kChromeUIChooseMobileNetworkHost, |
| 154 chrome::kChromeUICryptohomeHost, |
| 155 chrome::kChromeUIImageBurnerHost, |
| 156 chrome::kChromeUIKeyboardOverlayHost, |
| 157 chrome::kChromeUILoginHost, |
140 chrome::kChromeUINetworkHost, | 158 chrome::kChromeUINetworkHost, |
141 chrome::kChromeUICryptohomeHost, | 159 chrome::kChromeUIOobeHost, |
142 chrome::kChromeUIOSCreditsHost, | 160 chrome::kChromeUIOSCreditsHost, |
| 161 chrome::kChromeUIProxySettingsHost, |
| 162 chrome::kChromeUISystemInfoHost, |
143 #endif | 163 #endif |
144 }; | 164 }; |
145 | 165 |
146 // Debug paths, presented without links in chrome://about. | 166 // Debug paths, presented without links in chrome://about. |
147 // These paths will not be suggested by BuiltinProvider. | 167 // These paths will not be suggested by BuiltinProvider. |
148 const char* const kDebugChromePaths[] = { | 168 const char* const kDebugChromePaths[] = { |
149 chrome::kChromeUICrashHost, | 169 chrome::kChromeUICrashHost, |
150 chrome::kChromeUIKillHost, | 170 chrome::kChromeUIKillHost, |
151 chrome::kChromeUIHangHost, | 171 chrome::kChromeUIHangHost, |
152 chrome::kChromeUIShorthangHost, | 172 chrome::kChromeUIShorthangHost, |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 return false; | 1491 return false; |
1472 } | 1492 } |
1473 | 1493 |
1474 std::vector<std::string> ChromePaths() { | 1494 std::vector<std::string> ChromePaths() { |
1475 std::vector<std::string> paths; | 1495 std::vector<std::string> paths; |
1476 paths.reserve(arraysize(kChromePaths)); | 1496 paths.reserve(arraysize(kChromePaths)); |
1477 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 1497 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
1478 paths.push_back(kChromePaths[i]); | 1498 paths.push_back(kChromePaths[i]); |
1479 return paths; | 1499 return paths; |
1480 } | 1500 } |
OLD | NEW |