| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Use an obfuscated URL to make this nondiscoverable, we only want this | 65 // Use an obfuscated URL to make this nondiscoverable, we only want this |
| 66 // to be used for testing. | 66 // to be used for testing. |
| 67 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 67 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
| 68 | 68 |
| 69 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; | 69 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; |
| 70 const char kChromeUIAboutURL[] = "chrome://settings/about"; | 70 const char kChromeUIAboutURL[] = "chrome://settings/about"; |
| 71 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; | 71 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; |
| 72 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 72 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| 73 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; | 73 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; |
| 74 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; |
| 74 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; | 75 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; |
| 75 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 76 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
| 76 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 77 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
| 77 const char kChromeUIFavIconURL[] = "chrome://favicon/"; | 78 const char kChromeUIFavIconURL[] = "chrome://favicon/"; |
| 78 const char kChromeUIFlagsURL[] = "chrome://flags/"; | 79 const char kChromeUIFlagsURL[] = "chrome://flags/"; |
| 79 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 80 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
| 80 const char kChromeUIHistoryURL[] = "chrome://history/"; | 81 const char kChromeUIHistoryURL[] = "chrome://history/"; |
| 81 const char kChromeUIIPCURL[] = "chrome://about/ipc"; | 82 const char kChromeUIIPCURL[] = "chrome://about/ipc"; |
| 82 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; | 83 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; |
| 83 const char kChromeUINewTabURL[] = "chrome://newtab"; | 84 const char kChromeUINewTabURL[] = "chrome://newtab"; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 174 |
| 174 // Prevent future modification of the standard schemes list. This is to | 175 // Prevent future modification of the standard schemes list. This is to |
| 175 // prevent accidental creation of data races in the program. AddStandardScheme | 176 // prevent accidental creation of data races in the program. AddStandardScheme |
| 176 // isn't threadsafe so must be called when GURL isn't used on any other | 177 // isn't threadsafe so must be called when GURL isn't used on any other |
| 177 // thread. This is really easy to mess up, so we say that all calls to | 178 // thread. This is really easy to mess up, so we say that all calls to |
| 178 // AddStandardScheme in Chrome must be inside this function. | 179 // AddStandardScheme in Chrome must be inside this function. |
| 179 url_util::LockStandardSchemes(); | 180 url_util::LockStandardSchemes(); |
| 180 } | 181 } |
| 181 | 182 |
| 182 } // namespace chrome | 183 } // namespace chrome |
| OLD | NEW |