Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: chrome/common/url_constants.cc

Issue 3776005: Merge 62624 - Rename about:labs to about:flags, step 1/3... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/url_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 NULL 42 NULL
43 }; 43 };
44 44
45 const char kAboutAboutURL[] = "about:about"; 45 const char kAboutAboutURL[] = "about:about";
46 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; 46 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals";
47 const char kAboutBlankURL[] = "about:blank"; 47 const char kAboutBlankURL[] = "about:blank";
48 const char kAboutCacheURL[] = "about:cache"; 48 const char kAboutCacheURL[] = "about:cache";
49 const char kAboutCrashURL[] = "about:crash"; 49 const char kAboutCrashURL[] = "about:crash";
50 const char kAboutCreditsURL[] = "about:credits"; 50 const char kAboutCreditsURL[] = "about:credits";
51 const char kAboutDNSURL[] = "about:dns"; 51 const char kAboutDNSURL[] = "about:dns";
52 const char kAboutFlagsURL[] = "about:flags";
52 const char kAboutGpuCrashURL[] = "about:gpucrash"; 53 const char kAboutGpuCrashURL[] = "about:gpucrash";
53 const char kAboutGpuHangURL[] = "about:gpuhang"; 54 const char kAboutGpuHangURL[] = "about:gpuhang";
54 const char kAboutHangURL[] = "about:hang"; 55 const char kAboutHangURL[] = "about:hang";
55 const char kAboutHistogramsURL[] = "about:histograms"; 56 const char kAboutHistogramsURL[] = "about:histograms";
56 const char kAboutLabsURL[] = "about:labs";
57 const char kAboutMemoryURL[] = "about:memory"; 57 const char kAboutMemoryURL[] = "about:memory";
58 const char kAboutNetInternalsURL[] = "about:net-internals"; 58 const char kAboutNetInternalsURL[] = "about:net-internals";
59 const char kAboutPluginsURL[] = "about:plugins"; 59 const char kAboutPluginsURL[] = "about:plugins";
60 const char kAboutShorthangURL[] = "about:shorthang"; 60 const char kAboutShorthangURL[] = "about:shorthang";
61 const char kAboutTermsURL[] = "about:terms"; 61 const char kAboutTermsURL[] = "about:terms";
62 const char kAboutVaporwareURL[] = "about:vaporware"; 62 const char kAboutVaporwareURL[] = "about:vaporware";
63 const char kAboutVersionURL[] = "about:version"; 63 const char kAboutVersionURL[] = "about:version";
64 64
65 // Use an obfuscated URL to make this nondiscoverable, we only want this 65 // Use an obfuscated URL to make this nondiscoverable, we only want this
66 // to be used for testing. 66 // to be used for testing.
67 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; 67 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz";
68 68
69 const char kChromeUIAboutURL[] = "chrome://settings/about"; 69 const char kChromeUIAboutURL[] = "chrome://settings/about";
70 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; 70 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher";
71 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; 71 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
72 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; 72 const char kChromeUIBugReportURL[] = "chrome://bugreport/";
73 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; 73 const char kChromeUIDevToolsURL[] = "chrome://devtools/";
74 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; 74 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
75 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; 75 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
76 const char kChromeUIFavIconURL[] = "chrome://favicon/"; 76 const char kChromeUIFavIconURL[] = "chrome://favicon/";
77 const char kChromeUIFlagsURL[] = "chrome://flags/";
77 const char kChromeUIHistory2URL[] = "chrome://history2/"; 78 const char kChromeUIHistory2URL[] = "chrome://history2/";
78 const char kChromeUIHistoryURL[] = "chrome://history/"; 79 const char kChromeUIHistoryURL[] = "chrome://history/";
79 const char kChromeUIIPCURL[] = "chrome://about/ipc"; 80 const char kChromeUIIPCURL[] = "chrome://about/ipc";
80 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; 81 const char kChromeUIKeyboardURL[] = "chrome://keyboard/";
81 const char kChromeUILabsURL[] = "chrome://labs/";
82 const char kChromeUINewTabURL[] = "chrome://newtab"; 82 const char kChromeUINewTabURL[] = "chrome://newtab";
83 const char kChromeUIPluginsURL[] = "chrome://plugins/"; 83 const char kChromeUIPluginsURL[] = "chrome://plugins/";
84 const char kChromeUIPrintURL[] = "chrome://print/"; 84 const char kChromeUIPrintURL[] = "chrome://print/";
85 const char kChromeUISettingsURL[] = "chrome://settings/"; 85 const char kChromeUISettingsURL[] = "chrome://settings/";
86 86
87 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
88 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; 88 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/";
89 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/"; 89 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
90 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; 90 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
91 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/"; 91 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
92 const char kChromeUIRegisterPageURL[] = "chrome://register/"; 92 const char kChromeUIRegisterPageURL[] = "chrome://register/";
93 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; 93 const char kChromeUISlideshowURL[] = "chrome://slideshow/";
94 const char kChromeUISystemInfoURL[] = "chrome://system/"; 94 const char kChromeUISystemInfoURL[] = "chrome://system/";
95 #endif 95 #endif
96 96
97 // Keep this list sorted please. 97 // Keep this list sorted please.
98 const char kChromeUIBookmarksHost[] = "bookmarks"; 98 const char kChromeUIBookmarksHost[] = "bookmarks";
99 const char kChromeUIBugReportHost[] = "bugreport"; 99 const char kChromeUIBugReportHost[] = "bugreport";
100 const char kChromeUIDevToolsHost[] = "devtools"; 100 const char kChromeUIDevToolsHost[] = "devtools";
101 const char kChromeUIDialogHost[] = "dialog"; 101 const char kChromeUIDialogHost[] = "dialog";
102 const char kChromeUIDownloadsHost[] = "downloads"; 102 const char kChromeUIDownloadsHost[] = "downloads";
103 const char kChromeUIExtensionsHost[] = "extensions"; 103 const char kChromeUIExtensionsHost[] = "extensions";
104 const char kChromeUIFavIconHost[] = "favicon"; 104 const char kChromeUIFavIconHost[] = "favicon";
105 const char kChromeUIFlagsHost[] = "flags";
105 const char kChromeUIHistoryHost[] = "history"; 106 const char kChromeUIHistoryHost[] = "history";
106 const char kChromeUIHistory2Host[] = "history2"; 107 const char kChromeUIHistory2Host[] = "history2";
107 const char kChromeUIInspectorHost[] = "inspector"; 108 const char kChromeUIInspectorHost[] = "inspector";
108 const char kChromeUIKeyboardHost[] = "keyboard"; 109 const char kChromeUIKeyboardHost[] = "keyboard";
109 const char kChromeUILabsHost[] = "labs";
110 const char kChromeUINetInternalsHost[] = "net-internals"; 110 const char kChromeUINetInternalsHost[] = "net-internals";
111 const char kChromeUINewTabHost[] = "newtab"; 111 const char kChromeUINewTabHost[] = "newtab";
112 const char kChromeUIPluginsHost[] = "plugins"; 112 const char kChromeUIPluginsHost[] = "plugins";
113 const char kChromeUIPrintHost[] = "print"; 113 const char kChromeUIPrintHost[] = "print";
114 const char kChromeUIRemotingHost[] = "remoting"; 114 const char kChromeUIRemotingHost[] = "remoting";
115 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; 115 const char kChromeUIRemotingResourcesHost[] = "remotingresources";
116 const char kChromeUIResourcesHost[] = "resources"; 116 const char kChromeUIResourcesHost[] = "resources";
117 const char kChromeUIScreenshotPath[] = "screenshots"; 117 const char kChromeUIScreenshotPath[] = "screenshots";
118 const char kChromeUISettingsHost[] = "settings"; 118 const char kChromeUISettingsHost[] = "settings";
119 const char kChromeUISyncResourcesHost[] = "syncresources"; 119 const char kChromeUISyncResourcesHost[] = "syncresources";
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 // Prevent future modification of the standard schemes list. This is to 172 // Prevent future modification of the standard schemes list. This is to
173 // prevent accidental creation of data races in the program. AddStandardScheme 173 // prevent accidental creation of data races in the program. AddStandardScheme
174 // isn't threadsafe so must be called when GURL isn't used on any other 174 // isn't threadsafe so must be called when GURL isn't used on any other
175 // thread. This is really easy to mess up, so we say that all calls to 175 // thread. This is really easy to mess up, so we say that all calls to
176 // AddStandardScheme in Chrome must be inside this function. 176 // AddStandardScheme in Chrome must be inside this function.
177 url_util::LockStandardSchemes(); 177 url_util::LockStandardSchemes();
178 } 178 }
179 179
180 } // namespace chrome 180 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/url_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698