| 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 19 matching lines...) Expand all Loading... |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 const char kStandardSchemeSeparator[] = "://"; | 32 const char kStandardSchemeSeparator[] = "://"; |
| 33 | 33 |
| 34 const char* kSavableSchemes[] = { | 34 const char* kSavableSchemes[] = { |
| 35 kHttpScheme, | 35 kHttpScheme, |
| 36 kHttpsScheme, | 36 kHttpsScheme, |
| 37 kFileScheme, | 37 kFileScheme, |
| 38 kFtpScheme, | 38 kFtpScheme, |
| 39 kExtensionScheme, | 39 kExtensionScheme, |
| 40 kChromeUIScheme, |
| 40 NULL | 41 NULL |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; | 44 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; |
| 44 const char kAboutBlankURL[] = "about:blank"; | 45 const char kAboutBlankURL[] = "about:blank"; |
| 45 const char kAboutCacheURL[] = "about:cache"; | 46 const char kAboutCacheURL[] = "about:cache"; |
| 46 const char kAboutCrashURL[] = "about:crash"; | 47 const char kAboutCrashURL[] = "about:crash"; |
| 47 const char kAboutCreditsURL[] = "about:credits"; | 48 const char kAboutCreditsURL[] = "about:credits"; |
| 48 const char kAboutHangURL[] = "about:hang"; | 49 const char kAboutHangURL[] = "about:hang"; |
| 49 const char kAboutMemoryURL[] = "about:memory"; | 50 const char kAboutMemoryURL[] = "about:memory"; |
| 50 const char kAboutNetInternalsURL[] = "about:net-internals"; | 51 const char kAboutNetInternalsURL[] = "about:net-internals"; |
| 51 const char kAboutPluginsURL[] = "about:plugins"; | 52 const char kAboutPluginsURL[] = "about:plugins"; |
| 52 const char kAboutShorthangURL[] = "about:shorthang"; | 53 const char kAboutShorthangURL[] = "about:shorthang"; |
| 54 const char kAboutSystemURL[] = "about:system"; |
| 53 const char kAboutTermsURL[] = "about:terms"; | 55 const char kAboutTermsURL[] = "about:terms"; |
| 54 const char kAboutAboutURL[] = "about:about"; | 56 const char kAboutAboutURL[] = "about:about"; |
| 55 const char kAboutDNSURL[] = "about:dns"; | 57 const char kAboutDNSURL[] = "about:dns"; |
| 56 const char kAboutHistogramsURL[] = "about:histograms"; | 58 const char kAboutHistogramsURL[] = "about:histograms"; |
| 57 const char kAboutVersionURL[] = "about:version"; | 59 const char kAboutVersionURL[] = "about:version"; |
| 58 | 60 |
| 59 // Use an obfuscated URL to make this nondiscoverable, we only want this | 61 // Use an obfuscated URL to make this nondiscoverable, we only want this |
| 60 // to be used for testing. | 62 // to be used for testing. |
| 61 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 63 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
| 62 | 64 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 129 |
| 128 // Prevent future modification of the standard schemes list. This is to | 130 // Prevent future modification of the standard schemes list. This is to |
| 129 // prevent accidental creation of data races in the program. AddStandardScheme | 131 // prevent accidental creation of data races in the program. AddStandardScheme |
| 130 // isn't threadsafe so must be called when GURL isn't used on any other | 132 // isn't threadsafe so must be called when GURL isn't used on any other |
| 131 // thread. This is really easy to mess up, so we say that all calls to | 133 // thread. This is really easy to mess up, so we say that all calls to |
| 132 // AddStandardScheme in Chrome must be inside this function. | 134 // AddStandardScheme in Chrome must be inside this function. |
| 133 url_util::LockStandardSchemes(); | 135 url_util::LockStandardSchemes(); |
| 134 } | 136 } |
| 135 | 137 |
| 136 } // namespace chrome | 138 } // namespace chrome |
| OLD | NEW |