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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void AboutTcmallocRendererCallback(base::ProcessId pid, | 98 void AboutTcmallocRendererCallback(base::ProcessId pid, |
99 const std::string& output) { | 99 const std::string& output) { |
100 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); | 100 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); |
101 } | 101 } |
102 #endif | 102 #endif |
103 | 103 |
104 namespace { | 104 namespace { |
105 | 105 |
106 // Add paths here to be included in chrome://chrome-urls/. | 106 // Add paths here to be included in chrome://chrome-urls/. |
107 // These paths will also be suggested by BuiltinProvider. | 107 // These paths will also be suggested by BuiltinProvider. |
108 const char* kChromePaths[] = { | 108 const char *kChromePaths[] = { |
109 chrome::kChromeUIAppCacheInternalsHost, | 109 chrome::kChromeUIAppCacheInternalsHost, |
110 chrome::kChromeUIBlobInternalsHost, | 110 chrome::kChromeUIBlobInternalsHost, |
111 chrome::kChromeUIChromeURLsHost, | 111 chrome::kChromeUIChromeURLsHost, |
112 chrome::kChromeUICrashesHost, | |
113 chrome::kChromeUICreditsHost, | 112 chrome::kChromeUICreditsHost, |
114 chrome::kChromeUIDNSHost, | 113 chrome::kChromeUIDNSHost, |
115 chrome::kChromeUIFlagsHost, | 114 chrome::kChromeUIFlagsHost, |
116 chrome::kChromeUIFlashHost, | 115 chrome::kChromeUIFlashHost, |
117 chrome::kChromeUIGpuInternalsHost, | 116 chrome::kChromeUIGpuInternalsHost, |
118 chrome::kChromeUIHistogramsHost, | 117 chrome::kChromeUIHistogramsHost, |
119 chrome::kChromeUIMemoryHost, | 118 chrome::kChromeUIMemoryHost, |
120 chrome::kChromeUINetInternalsHost, | 119 chrome::kChromeUINetInternalsHost, |
121 chrome::kChromeUINetworkViewCacheHost, | 120 chrome::kChromeUINetworkViewCacheHost, |
122 chrome::kChromeUIPluginsHost, | 121 chrome::kChromeUIPluginsHost, |
123 chrome::kChromeUISettingsHost, | |
124 chrome::kChromeUIStatsHost, | 122 chrome::kChromeUIStatsHost, |
125 chrome::kChromeUISyncInternalsHost, | 123 chrome::kChromeUISyncInternalsHost, |
126 chrome::kChromeUITCMallocHost, | 124 chrome::kChromeUITCMallocHost, |
127 chrome::kChromeUITermsHost, | 125 chrome::kChromeUITermsHost, |
128 chrome::kChromeUIVersionHost, | 126 chrome::kChromeUIVersionHost, |
129 #ifdef TRACK_ALL_TASK_OBJECTS | 127 #ifdef TRACK_ALL_TASK_OBJECTS |
130 chrome::kChromeUITasksHost, | 128 chrome::kChromeUITasksHost, |
131 #endif | 129 #endif |
132 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
133 chrome::kChromeUIConflictsHost, | 131 chrome::kChromeUIConflictsHost, |
134 #endif | 132 #endif |
135 #if defined(OS_LINUX) | 133 #if defined(OS_LINUX) |
136 chrome::kChromeUISandboxHost, | 134 chrome::kChromeUISandboxHost, |
137 #endif | 135 #endif |
138 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
139 chrome::kChromeUINetworkHost, | 137 chrome::kChromeUINetworkHost, |
140 chrome::kChromeUIOSCreditsHost, | 138 chrome::kChromeUIOSCreditsHost, |
141 #endif | 139 #endif |
142 }; | 140 }; |
143 | 141 |
144 // Debug paths, presented without links in chrome://about. | 142 // Debug paths, presented without links in chrome://about. |
145 // These paths will not be suggested by BuiltinProvider. | 143 // These paths will not be suggested by BuiltinProvider. |
146 const char* kDebugChromePaths[] = { | 144 const char *kDebugChromePaths[] = { |
147 chrome::kChromeUICrashHost, | 145 chrome::kChromeUICrashHost, |
148 chrome::kChromeUIKillHost, | 146 chrome::kChromeUIKillHost, |
149 chrome::kChromeUIHangHost, | 147 chrome::kChromeUIHangHost, |
150 chrome::kChromeUIShorthangHost, | 148 chrome::kChromeUIShorthangHost, |
151 chrome::kChromeUIGpuCleanHost, | 149 chrome::kChromeUIGpuCleanHost, |
152 chrome::kChromeUIGpuCrashHost, | 150 chrome::kChromeUIGpuCrashHost, |
153 chrome::kChromeUIGpuHangHost | 151 chrome::kChromeUIGpuHangHost |
154 }; | 152 }; |
155 | 153 |
156 // AboutSource handles these chrome:// paths. | 154 // AboutSource handles these chrome:// paths. |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 return false; | 1336 return false; |
1339 } | 1337 } |
1340 | 1338 |
1341 std::vector<std::string> ChromePaths() { | 1339 std::vector<std::string> ChromePaths() { |
1342 std::vector<std::string> paths; | 1340 std::vector<std::string> paths; |
1343 paths.reserve(arraysize(kChromePaths)); | 1341 paths.reserve(arraysize(kChromePaths)); |
1344 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 1342 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
1345 paths.push_back(kChromePaths[i]); | 1343 paths.push_back(kChromePaths[i]); |
1346 return paths; | 1344 return paths; |
1347 } | 1345 } |
OLD | NEW |