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/common/url_constants.h" | 5 #include "chrome/common/url_constants.h" |
6 | 6 |
7 #include "googleurl/src/url_util.h" | 7 #include "googleurl/src/url_util.h" |
8 | 8 |
9 namespace chrome { | 9 namespace chrome { |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const char kAboutTermsURL[] = "about:terms"; | 48 const char kAboutTermsURL[] = "about:terms"; |
49 const char kAboutVersionURL[] = "about:version"; | 49 const char kAboutVersionURL[] = "about:version"; |
50 | 50 |
51 // Use an obfuscated URL to make this nondiscoverable, we only want this | 51 // Use an obfuscated URL to make this nondiscoverable, we only want this |
52 // to be used for testing. | 52 // to be used for testing. |
53 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 53 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
54 | 54 |
55 const char kChromeUIAboutURL[] = "chrome://about/"; | 55 const char kChromeUIAboutURL[] = "chrome://about/"; |
56 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 56 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
57 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; | 57 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; |
| 58 const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/"; |
58 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 59 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
59 const char kChromeUIConflictsURL[] = "chrome://conflicts/"; | 60 const char kChromeUIConflictsURL[] = "chrome://conflicts/"; |
60 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; | 61 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; |
61 const char kChromeUICrashesURL[] = "chrome://crashes/"; | 62 const char kChromeUICrashesURL[] = "chrome://crashes/"; |
62 const char kChromeUICrashURL[] = "chrome://crash/"; | 63 const char kChromeUICrashURL[] = "chrome://crash/"; |
63 const char kChromeUICreditsURL[] = "chrome://credits/"; | 64 const char kChromeUICreditsURL[] = "chrome://credits/"; |
64 const char kChromeUIDevToolsURL[] = "chrome-devtools://devtools/"; | 65 const char kChromeUIDevToolsURL[] = "chrome-devtools://devtools/"; |
65 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 66 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
66 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; | 67 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; |
67 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 68 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 300 |
300 // Prevent future modification of the standard schemes list. This is to | 301 // Prevent future modification of the standard schemes list. This is to |
301 // prevent accidental creation of data races in the program. AddStandardScheme | 302 // prevent accidental creation of data races in the program. AddStandardScheme |
302 // isn't threadsafe so must be called when GURL isn't used on any other | 303 // isn't threadsafe so must be called when GURL isn't used on any other |
303 // thread. This is really easy to mess up, so we say that all calls to | 304 // thread. This is really easy to mess up, so we say that all calls to |
304 // AddStandardScheme in Chrome must be inside this function. | 305 // AddStandardScheme in Chrome must be inside this function. |
305 url_util::LockStandardSchemes(); | 306 url_util::LockStandardSchemes(); |
306 } | 307 } |
307 | 308 |
308 } // namespace chrome | 309 } // namespace chrome |
OLD | NEW |