| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 64 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| 65 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; | 65 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; |
| 66 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 66 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
| 67 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 67 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
| 68 const char kChromeUIFavIconURL[] = "chrome://favicon/"; | 68 const char kChromeUIFavIconURL[] = "chrome://favicon/"; |
| 69 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; | 69 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; |
| 70 const char kChromeUIHistoryURL[] = "chrome://history/"; | 70 const char kChromeUIHistoryURL[] = "chrome://history/"; |
| 71 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 71 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
| 72 const char kChromeUIIPCURL[] = "chrome://about/ipc"; | 72 const char kChromeUIIPCURL[] = "chrome://about/ipc"; |
| 73 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; | 73 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; |
| 74 const char kChromeUINetworkURL[] = "chrome://about/network"; | |
| 75 const char kChromeUINewTabURL[] = "chrome://newtab"; | 74 const char kChromeUINewTabURL[] = "chrome://newtab"; |
| 76 const char kChromeUIOptionsURL[] = "chrome://options/"; | 75 const char kChromeUIOptionsURL[] = "chrome://options/"; |
| 77 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 76 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
| 78 const char kChromeUIPrintURL[] = "chrome://print/"; | 77 const char kChromeUIPrintURL[] = "chrome://print/"; |
| 79 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; | 78 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; |
| 80 | 79 |
| 81 const char kChromeUIBookmarksHost[] = "bookmarks"; | 80 const char kChromeUIBookmarksHost[] = "bookmarks"; |
| 82 const char kChromeUIDevToolsHost[] = "devtools"; | 81 const char kChromeUIDevToolsHost[] = "devtools"; |
| 83 const char kChromeUIDialogHost[] = "dialog"; | 82 const char kChromeUIDialogHost[] = "dialog"; |
| 84 const char kChromeUIDownloadsHost[] = "downloads"; | 83 const char kChromeUIDownloadsHost[] = "downloads"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 127 |
| 129 // Prevent future modification of the standard schemes list. This is to | 128 // Prevent future modification of the standard schemes list. This is to |
| 130 // prevent accidental creation of data races in the program. AddStandardScheme | 129 // prevent accidental creation of data races in the program. AddStandardScheme |
| 131 // isn't threadsafe so must be called when GURL isn't used on any other | 130 // isn't threadsafe so must be called when GURL isn't used on any other |
| 132 // thread. This is really easy to mess up, so we say that all calls to | 131 // thread. This is really easy to mess up, so we say that all calls to |
| 133 // AddStandardScheme in Chrome must be inside this function. | 132 // AddStandardScheme in Chrome must be inside this function. |
| 134 url_util::LockStandardSchemes(); | 133 url_util::LockStandardSchemes(); |
| 135 } | 134 } |
| 136 | 135 |
| 137 } // namespace chrome | 136 } // namespace chrome |
| OLD | NEW |