OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 20 matching lines...) Expand all Loading... |
31 kHttpScheme, | 31 kHttpScheme, |
32 kHttpsScheme, | 32 kHttpsScheme, |
33 kFileScheme, | 33 kFileScheme, |
34 kFtpScheme, | 34 kFtpScheme, |
35 kExtensionScheme, | 35 kExtensionScheme, |
36 NULL | 36 NULL |
37 }; | 37 }; |
38 | 38 |
39 const char kAboutBlankURL[] = "about:blank"; | 39 const char kAboutBlankURL[] = "about:blank"; |
40 const char kAboutCacheURL[] = "about:cache"; | 40 const char kAboutCacheURL[] = "about:cache"; |
41 const char kAboutNetInternalsURL[] = "about:net-internals"; | |
42 const char kAboutCrashURL[] = "about:crash"; | 41 const char kAboutCrashURL[] = "about:crash"; |
43 const char kAboutCreditsURL[] = "about:credits"; | 42 const char kAboutCreditsURL[] = "about:credits"; |
44 const char kAboutHangURL[] = "about:hang"; | 43 const char kAboutHangURL[] = "about:hang"; |
45 const char kAboutMemoryURL[] = "about:memory"; | 44 const char kAboutMemoryURL[] = "about:memory"; |
| 45 const char kAboutNetInternalsURL[] = "about:net-internals"; |
46 const char kAboutShorthangURL[] = "about:shorthang"; | 46 const char kAboutShorthangURL[] = "about:shorthang"; |
47 const char kAboutTermsURL[] = "about:terms"; | 47 const char kAboutTermsURL[] = "about:terms"; |
48 | 48 |
49 // Use an obfuscated URL to make this nondiscoverable, we only want this | 49 // Use an obfuscated URL to make this nondiscoverable, we only want this |
50 // to be used for testing. | 50 // to be used for testing. |
51 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 51 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
52 | 52 |
53 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 53 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
54 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; | 54 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; |
55 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; | 55 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
56 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 56 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
57 const char kChromeUIHistoryURL[] = "chrome://history/"; | 57 const char kChromeUIHistoryURL[] = "chrome://history/"; |
| 58 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
58 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; | 59 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; |
59 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; | 60 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; |
60 const char kChromeUIIPCURL[] = "chrome://about/ipc"; | 61 const char kChromeUIIPCURL[] = "chrome://about/ipc"; |
61 const char kChromeUINetworkURL[] = "chrome://about/network"; | 62 const char kChromeUINetworkURL[] = "chrome://about/network"; |
62 const char kChromeUINewTabURL[] = "chrome://newtab"; | 63 const char kChromeUINewTabURL[] = "chrome://newtab"; |
63 | 64 |
64 const char kChromeUIBookmarksHost[] = "bookmarks"; | 65 const char kChromeUIBookmarksHost[] = "bookmarks"; |
65 const char kChromeUIDevToolsHost[] = "devtools"; | 66 const char kChromeUIDevToolsHost[] = "devtools"; |
66 const char kChromeUIDialogHost[] = "dialog"; | 67 const char kChromeUIDialogHost[] = "dialog"; |
67 const char kChromeUIDownloadsHost[] = "downloads"; | 68 const char kChromeUIDownloadsHost[] = "downloads"; |
68 const char kChromeUIExtensionsHost[] = "extensions"; | 69 const char kChromeUIExtensionsHost[] = "extensions"; |
69 const char kChromeUIFavIconPath[] = "favicon"; | 70 const char kChromeUIFavIconPath[] = "favicon"; |
70 const char kChromeUIHistoryHost[] = "history"; | 71 const char kChromeUIHistoryHost[] = "history"; |
| 72 const char kChromeUIPluginsHost[] = "plugins"; |
71 const char kChromeUIFileBrowseHost[] = "filebrowse"; | 73 const char kChromeUIFileBrowseHost[] = "filebrowse"; |
72 const char kChromeUIMediaplayerHost[] = "mediaplayer"; | 74 const char kChromeUIMediaplayerHost[] = "mediaplayer"; |
73 const char kChromeUIInspectorHost[] = "inspector"; | 75 const char kChromeUIInspectorHost[] = "inspector"; |
74 // TODO(eroman): This value is temporary, while the page is being implemented. | 76 // TODO(eroman): This value is temporary, while the page is being implemented. |
75 const char kChromeUINetInternalsHost[] = "net2"; | 77 const char kChromeUINetInternalsHost[] = "net2"; |
76 const char kChromeUINewTabHost[] = "newtab"; | 78 const char kChromeUINewTabHost[] = "newtab"; |
77 const char kChromeUIThumbnailPath[] = "thumb"; | 79 const char kChromeUIThumbnailPath[] = "thumb"; |
78 const char kChromeUIThemePath[] = "theme"; | 80 const char kChromeUIThemePath[] = "theme"; |
79 | 81 |
80 const char kSyncResourcesHost[] = "syncresources"; | 82 const char kSyncResourcesHost[] = "syncresources"; |
81 const char kSyncGaiaLoginPath[] = "gaialogin"; | 83 const char kSyncGaiaLoginPath[] = "gaialogin"; |
82 const char kSyncMergeAndSyncPath[] = "mergeandsync"; | 84 const char kSyncMergeAndSyncPath[] = "mergeandsync"; |
83 const char kSyncThrobberPath[] = "throbber.png"; | 85 const char kSyncThrobberPath[] = "throbber.png"; |
84 const char kSyncSetupFlowPath[] = "setup"; | 86 const char kSyncSetupFlowPath[] = "setup"; |
85 const char kSyncSetupDonePath[] = "setupdone"; | 87 const char kSyncSetupDonePath[] = "setupdone"; |
86 | 88 |
87 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 89 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
88 const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; | 90 const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; |
89 | 91 |
90 void RegisterChromeSchemes() { | 92 void RegisterChromeSchemes() { |
91 // Don't need "chrome-internal" which was used in old versions of Chrome for | 93 // Don't need "chrome-internal" which was used in old versions of Chrome for |
92 // the new tab page. | 94 // the new tab page. |
93 url_util::AddStandardScheme(kChromeUIScheme); | 95 url_util::AddStandardScheme(kChromeUIScheme); |
94 url_util::AddStandardScheme(kExtensionScheme); | 96 url_util::AddStandardScheme(kExtensionScheme); |
95 } | 97 } |
96 | 98 |
97 } // namespace chrome | 99 } // namespace chrome |
OLD | NEW |