| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
| 8 #include "googleurl/src/url_util.h" | 8 #include "googleurl/src/url_util.h" |
| 9 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // to be used for testing. | 73 // to be used for testing. |
| 74 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 74 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
| 75 | 75 |
| 76 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; | 76 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; |
| 77 const char kChromeUIAboutCreditsURL[] = "chrome://about/credits"; | 77 const char kChromeUIAboutCreditsURL[] = "chrome://about/credits"; |
| 78 const char kChromeUIAboutURL[] = "chrome://settings/about"; | 78 const char kChromeUIAboutURL[] = "chrome://settings/about"; |
| 79 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; | 79 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; |
| 80 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 80 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| 81 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; | 81 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; |
| 82 const char kChromeUIConflictsURL[] = "chrome://conflicts/"; | 82 const char kChromeUIConflictsURL[] = "chrome://conflicts/"; |
| 83 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; |
| 83 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; | 84 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; |
| 84 const char kChromeUICrashesURL[] = "chrome://crashes/"; | 85 const char kChromeUICrashesURL[] = "chrome://crashes/"; |
| 85 const char kChromeUIDevToolsURL[] = "chrome-devtools://devtools/"; | 86 const char kChromeUIDevToolsURL[] = "chrome-devtools://devtools/"; |
| 86 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 87 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
| 87 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; | 88 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; |
| 88 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 89 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
| 89 const char kChromeUIFavIconURL[] = "chrome://favicon/"; | 90 const char kChromeUIFavIconURL[] = "chrome://favicon/"; |
| 90 const char kChromeUIFlagsURL[] = "chrome://flags/"; | 91 const char kChromeUIFlagsURL[] = "chrome://flags/"; |
| 91 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 92 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
| 92 const char kChromeUIHistoryURL[] = "chrome://history/"; | 93 const char kChromeUIHistoryURL[] = "chrome://history/"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 110 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; | 111 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; |
| 111 const char kChromeUISystemInfoURL[] = "chrome://system/"; | 112 const char kChromeUISystemInfoURL[] = "chrome://system/"; |
| 112 const char kChromeUIUserImageURL[] = "chrome://userimage/"; | 113 const char kChromeUIUserImageURL[] = "chrome://userimage/"; |
| 113 #endif | 114 #endif |
| 114 | 115 |
| 115 // Keep this list sorted please. | 116 // Keep this list sorted please. |
| 116 const char kChromeUIBookmarksHost[] = "bookmarks"; | 117 const char kChromeUIBookmarksHost[] = "bookmarks"; |
| 117 const char kChromeUIBugReportHost[] = "bugreport"; | 118 const char kChromeUIBugReportHost[] = "bugreport"; |
| 118 const char kChromeUIConflictsHost[] = "conflicts"; | 119 const char kChromeUIConflictsHost[] = "conflicts"; |
| 119 const char kChromeUICrashesHost[] = "crashes"; | 120 const char kChromeUICrashesHost[] = "crashes"; |
| 121 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; |
| 120 const char kChromeUIDevToolsHost[] = "devtools"; | 122 const char kChromeUIDevToolsHost[] = "devtools"; |
| 121 const char kChromeUIDialogHost[] = "dialog"; | 123 const char kChromeUIDialogHost[] = "dialog"; |
| 122 const char kChromeUIDownloadsHost[] = "downloads"; | 124 const char kChromeUIDownloadsHost[] = "downloads"; |
| 123 const char kChromeUIExtensionIconHost[] = "extension-icon"; | 125 const char kChromeUIExtensionIconHost[] = "extension-icon"; |
| 124 const char kChromeUIExtensionsHost[] = "extensions"; | 126 const char kChromeUIExtensionsHost[] = "extensions"; |
| 125 const char kChromeUIFavIconHost[] = "favicon"; | 127 const char kChromeUIFavIconHost[] = "favicon"; |
| 126 const char kChromeUIFlagsHost[] = "flags"; | 128 const char kChromeUIFlagsHost[] = "flags"; |
| 127 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 129 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
| 128 const char kChromeUIHistoryHost[] = "history"; | 130 const char kChromeUIHistoryHost[] = "history"; |
| 129 const char kChromeUIHistory2Host[] = "history2"; | 131 const char kChromeUIHistory2Host[] = "history2"; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 261 |
| 260 // Prevent future modification of the standard schemes list. This is to | 262 // Prevent future modification of the standard schemes list. This is to |
| 261 // prevent accidental creation of data races in the program. AddStandardScheme | 263 // prevent accidental creation of data races in the program. AddStandardScheme |
| 262 // isn't threadsafe so must be called when GURL isn't used on any other | 264 // isn't threadsafe so must be called when GURL isn't used on any other |
| 263 // thread. This is really easy to mess up, so we say that all calls to | 265 // thread. This is really easy to mess up, so we say that all calls to |
| 264 // AddStandardScheme in Chrome must be inside this function. | 266 // AddStandardScheme in Chrome must be inside this function. |
| 265 url_util::LockStandardSchemes(); | 267 url_util::LockStandardSchemes(); |
| 266 } | 268 } |
| 267 | 269 |
| 268 } // namespace chrome | 270 } // namespace chrome |
| OLD | NEW |