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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void AboutTcmallocRendererCallback(base::ProcessId pid, | 99 void AboutTcmallocRendererCallback(base::ProcessId pid, |
100 const std::string& output) { | 100 const std::string& output) { |
101 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); | 101 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); |
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 *kChromePaths[] = { | 109 const char* kChromePaths[] = { |
110 chrome::kChromeUIAppCacheInternalsHost, | 110 chrome::kChromeUIAppCacheInternalsHost, |
111 chrome::kChromeUIBlobInternalsHost, | 111 chrome::kChromeUIBlobInternalsHost, |
112 chrome::kChromeUIChromeURLsHost, | 112 chrome::kChromeUIChromeURLsHost, |
| 113 chrome::kChromeUICrashesHost, |
113 chrome::kChromeUICreditsHost, | 114 chrome::kChromeUICreditsHost, |
114 chrome::kChromeUIDNSHost, | 115 chrome::kChromeUIDNSHost, |
115 chrome::kChromeUIFlagsHost, | 116 chrome::kChromeUIFlagsHost, |
116 chrome::kChromeUIFlashHost, | 117 chrome::kChromeUIFlashHost, |
117 chrome::kChromeUIGpuInternalsHost, | 118 chrome::kChromeUIGpuInternalsHost, |
118 chrome::kChromeUIHistogramsHost, | 119 chrome::kChromeUIHistogramsHost, |
119 chrome::kChromeUIMemoryHost, | 120 chrome::kChromeUIMemoryHost, |
120 chrome::kChromeUINetInternalsHost, | 121 chrome::kChromeUINetInternalsHost, |
121 chrome::kChromeUINetworkViewCacheHost, | 122 chrome::kChromeUINetworkViewCacheHost, |
122 chrome::kChromeUIPluginsHost, | 123 chrome::kChromeUIPluginsHost, |
| 124 chrome::kChromeUISettingsHost, |
123 chrome::kChromeUIStatsHost, | 125 chrome::kChromeUIStatsHost, |
124 chrome::kChromeUISyncInternalsHost, | 126 chrome::kChromeUISyncInternalsHost, |
125 chrome::kChromeUITCMallocHost, | 127 chrome::kChromeUITCMallocHost, |
126 chrome::kChromeUITermsHost, | 128 chrome::kChromeUITermsHost, |
127 chrome::kChromeUIVersionHost, | 129 chrome::kChromeUIVersionHost, |
128 #ifdef TRACK_ALL_TASK_OBJECTS | 130 #ifdef TRACK_ALL_TASK_OBJECTS |
129 chrome::kChromeUITasksHost, | 131 chrome::kChromeUITasksHost, |
130 #endif | 132 #endif |
131 #if defined(OS_WIN) | 133 #if defined(OS_WIN) |
132 chrome::kChromeUIConflictsHost, | 134 chrome::kChromeUIConflictsHost, |
133 #endif | 135 #endif |
134 #if defined(OS_LINUX) | 136 #if defined(OS_LINUX) |
135 chrome::kChromeUISandboxHost, | 137 chrome::kChromeUISandboxHost, |
136 #endif | 138 #endif |
137 #if defined(OS_CHROMEOS) | 139 #if defined(OS_CHROMEOS) |
138 chrome::kChromeUINetworkHost, | 140 chrome::kChromeUINetworkHost, |
139 chrome::kChromeUICryptohomeHost, | 141 chrome::kChromeUICryptohomeHost, |
140 chrome::kChromeUIOSCreditsHost, | 142 chrome::kChromeUIOSCreditsHost, |
141 #endif | 143 #endif |
142 }; | 144 }; |
143 | 145 |
144 // Debug paths, presented without links in chrome://about. | 146 // Debug paths, presented without links in chrome://about. |
145 // These paths will not be suggested by BuiltinProvider. | 147 // These paths will not be suggested by BuiltinProvider. |
146 const char *kDebugChromePaths[] = { | 148 const char* kDebugChromePaths[] = { |
147 chrome::kChromeUICrashHost, | 149 chrome::kChromeUICrashHost, |
148 chrome::kChromeUIKillHost, | 150 chrome::kChromeUIKillHost, |
149 chrome::kChromeUIHangHost, | 151 chrome::kChromeUIHangHost, |
150 chrome::kChromeUIShorthangHost, | 152 chrome::kChromeUIShorthangHost, |
151 chrome::kChromeUIGpuCleanHost, | 153 chrome::kChromeUIGpuCleanHost, |
152 chrome::kChromeUIGpuCrashHost, | 154 chrome::kChromeUIGpuCrashHost, |
153 chrome::kChromeUIGpuHangHost | 155 chrome::kChromeUIGpuHangHost |
154 }; | 156 }; |
155 | 157 |
156 // AboutSource handles these chrome:// paths. | 158 // AboutSource handles these chrome:// paths. |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 return false; | 1396 return false; |
1395 } | 1397 } |
1396 | 1398 |
1397 std::vector<std::string> ChromePaths() { | 1399 std::vector<std::string> ChromePaths() { |
1398 std::vector<std::string> paths; | 1400 std::vector<std::string> paths; |
1399 paths.reserve(arraysize(kChromePaths)); | 1401 paths.reserve(arraysize(kChromePaths)); |
1400 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 1402 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
1401 paths.push_back(kChromePaths[i]); | 1403 paths.push_back(kChromePaths[i]); |
1402 return paths; | 1404 return paths; |
1403 } | 1405 } |
OLD | NEW |