| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 const char kAboutBlankURL[] = "about:blank"; | 44 const char kAboutBlankURL[] = "about:blank"; |
| 45 const char kAboutCacheURL[] = "about:cache"; | 45 const char kAboutCacheURL[] = "about:cache"; |
| 46 const char kAboutCrashURL[] = "about:crash"; | 46 const char kAboutCrashURL[] = "about:crash"; |
| 47 const char kAboutCreditsURL[] = "about:credits"; | 47 const char kAboutCreditsURL[] = "about:credits"; |
| 48 const char kAboutHangURL[] = "about:hang"; | 48 const char kAboutHangURL[] = "about:hang"; |
| 49 const char kAboutMemoryURL[] = "about:memory"; | 49 const char kAboutMemoryURL[] = "about:memory"; |
| 50 const char kAboutNetInternalsURL[] = "about:net-internals"; | 50 const char kAboutNetInternalsURL[] = "about:net-internals"; |
| 51 const char kAboutPluginsURL[] = "about:plugins"; | 51 const char kAboutPluginsURL[] = "about:plugins"; |
| 52 const char kAboutShorthangURL[] = "about:shorthang"; | 52 const char kAboutShorthangURL[] = "about:shorthang"; |
| 53 const char kAboutTermsURL[] = "about:terms"; | 53 const char kAboutTermsURL[] = "about:terms"; |
| 54 const char kAboutAboutURL[] = "about:about"; | |
| 55 const char kAboutDNSURL[] = "about:dns"; | |
| 56 const char kAboutHistogramsURL[] = "about:histograms"; | |
| 57 const char kAboutVersionURL[] = "about:version"; | |
| 58 | |
| 59 | 54 |
| 60 // Use an obfuscated URL to make this nondiscoverable, we only want this | 55 // Use an obfuscated URL to make this nondiscoverable, we only want this |
| 61 // to be used for testing. | 56 // to be used for testing. |
| 62 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 57 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
| 63 | 58 |
| 64 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; | 59 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; |
| 65 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 60 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| 66 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; | 61 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; |
| 67 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 62 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
| 68 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 63 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 124 |
| 130 // Prevent future modification of the standard schemes list. This is to | 125 // Prevent future modification of the standard schemes list. This is to |
| 131 // prevent accidental creation of data races in the program. AddStandardScheme | 126 // prevent accidental creation of data races in the program. AddStandardScheme |
| 132 // isn't threadsafe so must be called when GURL isn't used on any other | 127 // isn't threadsafe so must be called when GURL isn't used on any other |
| 133 // thread. This is really easy to mess up, so we say that all calls to | 128 // thread. This is really easy to mess up, so we say that all calls to |
| 134 // AddStandardScheme in Chrome must be inside this function. | 129 // AddStandardScheme in Chrome must be inside this function. |
| 135 url_util::LockStandardSchemes(); | 130 url_util::LockStandardSchemes(); |
| 136 } | 131 } |
| 137 | 132 |
| 138 } // namespace chrome | 133 } // namespace chrome |
| OLD | NEW |