| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const char kChromeUIBookmarksHost[] = "bookmarks"; | 116 const char kChromeUIBookmarksHost[] = "bookmarks"; |
| 117 const char kChromeUIBugReportHost[] = "bugreport"; | 117 const char kChromeUIBugReportHost[] = "bugreport"; |
| 118 const char kChromeUIConflictsHost[] = "conflicts"; | 118 const char kChromeUIConflictsHost[] = "conflicts"; |
| 119 const char kChromeUICrashesHost[] = "crashes"; | 119 const char kChromeUICrashesHost[] = "crashes"; |
| 120 const char kChromeUIDevToolsHost[] = "devtools"; | 120 const char kChromeUIDevToolsHost[] = "devtools"; |
| 121 const char kChromeUIDialogHost[] = "dialog"; | 121 const char kChromeUIDialogHost[] = "dialog"; |
| 122 const char kChromeUIDownloadsHost[] = "downloads"; | 122 const char kChromeUIDownloadsHost[] = "downloads"; |
| 123 const char kChromeUIExtensionIconHost[] = "extension-icon"; | 123 const char kChromeUIExtensionIconHost[] = "extension-icon"; |
| 124 const char kChromeUIExtensionsHost[] = "extensions"; | 124 const char kChromeUIExtensionsHost[] = "extensions"; |
| 125 const char kChromeUIFaviconHost[] = "favicon"; | 125 const char kChromeUIFaviconHost[] = "favicon"; |
| 126 const char kChromeUITouchIconHost[] = "touch-icon"; |
| 126 const char kChromeUIFlagsHost[] = "flags"; | 127 const char kChromeUIFlagsHost[] = "flags"; |
| 127 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 128 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
| 128 const char kChromeUIHistoryHost[] = "history"; | 129 const char kChromeUIHistoryHost[] = "history"; |
| 129 const char kChromeUIHistory2Host[] = "history2"; | 130 const char kChromeUIHistory2Host[] = "history2"; |
| 130 const char kChromeUIInspectorHost[] = "inspector"; | 131 const char kChromeUIInspectorHost[] = "inspector"; |
| 131 const char kChromeUIKeyboardHost[] = "keyboard"; | 132 const char kChromeUIKeyboardHost[] = "keyboard"; |
| 132 const char kChromeUINetInternalsHost[] = "net-internals"; | 133 const char kChromeUINetInternalsHost[] = "net-internals"; |
| 133 const char kChromeUINewTabHost[] = "newtab"; | 134 const char kChromeUINewTabHost[] = "newtab"; |
| 134 const char kChromeUIPluginsHost[] = "plugins"; | 135 const char kChromeUIPluginsHost[] = "plugins"; |
| 135 const char kChromeUIPrintHost[] = "print"; | 136 const char kChromeUIPrintHost[] = "print"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 262 |
| 262 // Prevent future modification of the standard schemes list. This is to | 263 // Prevent future modification of the standard schemes list. This is to |
| 263 // prevent accidental creation of data races in the program. AddStandardScheme | 264 // prevent accidental creation of data races in the program. AddStandardScheme |
| 264 // isn't threadsafe so must be called when GURL isn't used on any other | 265 // isn't threadsafe so must be called when GURL isn't used on any other |
| 265 // thread. This is really easy to mess up, so we say that all calls to | 266 // thread. This is really easy to mess up, so we say that all calls to |
| 266 // AddStandardScheme in Chrome must be inside this function. | 267 // AddStandardScheme in Chrome must be inside this function. |
| 267 url_util::LockStandardSchemes(); | 268 url_util::LockStandardSchemes(); |
| 268 } | 269 } |
| 269 | 270 |
| 270 } // namespace chrome | 271 } // namespace chrome |
| OLD | NEW |