| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 60 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| 61 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; | 61 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; |
| 62 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 62 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
| 63 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 63 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
| 64 const char kChromeUIHistoryURL[] = "chrome://history/"; | 64 const char kChromeUIHistoryURL[] = "chrome://history/"; |
| 65 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 65 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
| 66 const char kChromeUIPrintURL[] = "chrome://print/"; | 66 const char kChromeUIPrintURL[] = "chrome://print/"; |
| 67 const char kChromeUIFavIconURL[] = "chrome://favicon/"; | 67 const char kChromeUIFavIconURL[] = "chrome://favicon/"; |
| 68 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; | 68 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; |
| 69 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; | 69 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; |
| 70 const char kChromeUIOptionsURL[] = "chrome://options/"; |
| 70 const char kChromeUIIPCURL[] = "chrome://about/ipc"; | 71 const char kChromeUIIPCURL[] = "chrome://about/ipc"; |
| 71 const char kChromeUINetworkURL[] = "chrome://about/network"; | 72 const char kChromeUINetworkURL[] = "chrome://about/network"; |
| 72 const char kChromeUINewTabURL[] = "chrome://newtab"; | 73 const char kChromeUINewTabURL[] = "chrome://newtab"; |
| 73 | 74 |
| 74 const char kChromeUIBookmarksHost[] = "bookmarks"; | 75 const char kChromeUIBookmarksHost[] = "bookmarks"; |
| 75 const char kChromeUIDevToolsHost[] = "devtools"; | 76 const char kChromeUIDevToolsHost[] = "devtools"; |
| 76 const char kChromeUIDialogHost[] = "dialog"; | 77 const char kChromeUIDialogHost[] = "dialog"; |
| 77 const char kChromeUIDownloadsHost[] = "downloads"; | 78 const char kChromeUIDownloadsHost[] = "downloads"; |
| 78 const char kChromeUIExtensionsHost[] = "extensions"; | 79 const char kChromeUIExtensionsHost[] = "extensions"; |
| 79 const char kChromeUIFavIconHost[] = "favicon"; | 80 const char kChromeUIFavIconHost[] = "favicon"; |
| 80 const char kChromeUIHistoryHost[] = "history"; | 81 const char kChromeUIHistoryHost[] = "history"; |
| 81 const char kChromeUIPluginsHost[] = "plugins"; | 82 const char kChromeUIPluginsHost[] = "plugins"; |
| 82 const char kChromeUIPrintHost[] = "print"; | 83 const char kChromeUIPrintHost[] = "print"; |
| 83 const char kChromeUIResourcesHost[] = "resources"; | 84 const char kChromeUIResourcesHost[] = "resources"; |
| 84 const char kChromeUIFileBrowseHost[] = "filebrowse"; | 85 const char kChromeUIFileBrowseHost[] = "filebrowse"; |
| 85 const char kChromeUIMediaplayerHost[] = "mediaplayer"; | 86 const char kChromeUIMediaplayerHost[] = "mediaplayer"; |
| 87 const char kChromeUIOptionsHost[] = "options"; |
| 86 const char kChromeUIInspectorHost[] = "inspector"; | 88 const char kChromeUIInspectorHost[] = "inspector"; |
| 87 const char kChromeUINetInternalsHost[] = "net-internals"; | 89 const char kChromeUINetInternalsHost[] = "net-internals"; |
| 88 const char kChromeUINewTabHost[] = "newtab"; | 90 const char kChromeUINewTabHost[] = "newtab"; |
| 89 const char kChromeUIThumbnailPath[] = "thumb"; | 91 const char kChromeUIThumbnailPath[] = "thumb"; |
| 90 const char kChromeUIThemePath[] = "theme"; | 92 const char kChromeUIThemePath[] = "theme"; |
| 91 | 93 |
| 92 const char kSyncResourcesHost[] = "syncresources"; | 94 const char kSyncResourcesHost[] = "syncresources"; |
| 93 const char kSyncGaiaLoginPath[] = "gaialogin"; | 95 const char kSyncGaiaLoginPath[] = "gaialogin"; |
| 94 const char kSyncMergeAndSyncPath[] = "mergeandsync"; | 96 const char kSyncMergeAndSyncPath[] = "mergeandsync"; |
| 95 const char kSyncThrobberPath[] = "throbber.png"; | 97 const char kSyncThrobberPath[] = "throbber.png"; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 117 | 119 |
| 118 // Prevent future modification of the standard schemes list. This is to | 120 // Prevent future modification of the standard schemes list. This is to |
| 119 // prevent accidental creation of data races in the program. AddStandardScheme | 121 // prevent accidental creation of data races in the program. AddStandardScheme |
| 120 // isn't threadsafe so must be called when GURL isn't used on any other | 122 // isn't threadsafe so must be called when GURL isn't used on any other |
| 121 // thread. This is really easy to mess up, so we say that all calls to | 123 // thread. This is really easy to mess up, so we say that all calls to |
| 122 // AddStandardScheme in Chrome must be inside this function. | 124 // AddStandardScheme in Chrome must be inside this function. |
| 123 url_util::LockStandardSchemes(); | 125 url_util::LockStandardSchemes(); |
| 124 } | 126 } |
| 125 | 127 |
| 126 } // namespace chrome | 128 } // namespace chrome |
| OLD | NEW |