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 "content/public/common/url_constants.h" | 5 #include "content/public/common/url_constants.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const char kSwappedOutScheme[] = "swappedout"; | 51 const char kSwappedOutScheme[] = "swappedout"; |
52 const char kViewSourceScheme[] = "view-source"; | 52 const char kViewSourceScheme[] = "view-source"; |
53 | 53 |
54 const char kStandardSchemeSeparator[] = "://"; | 54 const char kStandardSchemeSeparator[] = "://"; |
55 | 55 |
56 const char kAboutBlankURL[] = "about:blank"; | 56 const char kAboutBlankURL[] = "about:blank"; |
57 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 57 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
58 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 58 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
59 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 59 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
60 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 60 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
| 61 const char kChromeUITcmallocHost[] = "tcmalloc"; |
61 const char kChromeUICrashURL[] = "chrome://crash"; | 62 const char kChromeUICrashURL[] = "chrome://crash"; |
62 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 63 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
63 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 64 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
64 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 65 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
65 const char kChromeUIHangURL[] = "chrome://hang"; | 66 const char kChromeUIHangURL[] = "chrome://hang"; |
66 const char kChromeUIKillURL[] = "chrome://kill"; | 67 const char kChromeUIKillURL[] = "chrome://kill"; |
67 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 68 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
68 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 69 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
69 | 70 |
70 } // namespace chrome | 71 } // namespace chrome |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 arraysize(kDefaultSavableSchemes) * sizeof(char*)); | 120 arraysize(kDefaultSavableSchemes) * sizeof(char*)); |
120 for (int i = 0; i < schemes; ++i) { | 121 for (int i = 0; i < schemes; ++i) { |
121 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = | 122 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = |
122 base::strdup(additional_savable_schemes[i].c_str()); | 123 base::strdup(additional_savable_schemes[i].c_str()); |
123 } | 124 } |
124 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; | 125 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; |
125 } | 126 } |
126 } | 127 } |
127 | 128 |
128 } // namespace content | 129 } // namespace content |
OLD | NEW |