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

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

Issue 3256001: Revert 57635: Implement about:labs (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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
« 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 23 matching lines...) Expand all
34 const char* kSavableSchemes[] = { 34 const char* kSavableSchemes[] = {
35 kHttpScheme, 35 kHttpScheme,
36 kHttpsScheme, 36 kHttpsScheme,
37 kFileScheme, 37 kFileScheme,
38 kFtpScheme, 38 kFtpScheme,
39 kExtensionScheme, 39 kExtensionScheme,
40 kChromeUIScheme, 40 kChromeUIScheme,
41 NULL 41 NULL
42 }; 42 };
43 43
44 const char kAboutAboutURL[] = "about:about";
45 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; 44 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals";
46 const char kAboutBlankURL[] = "about:blank"; 45 const char kAboutBlankURL[] = "about:blank";
47 const char kAboutCacheURL[] = "about:cache"; 46 const char kAboutCacheURL[] = "about:cache";
48 const char kAboutCrashURL[] = "about:crash"; 47 const char kAboutCrashURL[] = "about:crash";
49 const char kAboutCreditsURL[] = "about:credits"; 48 const char kAboutCreditsURL[] = "about:credits";
50 const char kAboutDNSURL[] = "about:dns";
51 const char kAboutHangURL[] = "about:hang"; 49 const char kAboutHangURL[] = "about:hang";
52 const char kAboutHistogramsURL[] = "about:histograms";
53 const char kAboutLabsURL[] = "about:labs";
54 const char kAboutMemoryURL[] = "about:memory"; 50 const char kAboutMemoryURL[] = "about:memory";
55 const char kAboutNetInternalsURL[] = "about:net-internals"; 51 const char kAboutNetInternalsURL[] = "about:net-internals";
56 const char kAboutPluginsURL[] = "about:plugins"; 52 const char kAboutPluginsURL[] = "about:plugins";
57 const char kAboutShorthangURL[] = "about:shorthang"; 53 const char kAboutShorthangURL[] = "about:shorthang";
58 const char kAboutSystemURL[] = "about:system"; 54 const char kAboutSystemURL[] = "about:system";
59 const char kAboutTermsURL[] = "about:terms"; 55 const char kAboutTermsURL[] = "about:terms";
60 const char kAboutVaporwareURL[] = "about:vaporware"; 56 const char kAboutAboutURL[] = "about:about";
57 const char kAboutDNSURL[] = "about:dns";
58 const char kAboutHistogramsURL[] = "about:histograms";
61 const char kAboutVersionURL[] = "about:version"; 59 const char kAboutVersionURL[] = "about:version";
62 60
63 // Use an obfuscated URL to make this nondiscoverable, we only want this 61 // Use an obfuscated URL to make this nondiscoverable, we only want this
64 // to be used for testing. 62 // to be used for testing.
65 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; 63 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz";
66 64
67 const char kChromeUIAboutURL[] = "chrome://options/about"; 65 const char kChromeUIAboutURL[] = "chrome://options/about";
68 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher"; 66 const char kChromeUIAppLauncherURL[] = "chrome://newtab/#mode=app-launcher";
69 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; 67 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
70 const char kChromeUIBugReportURL[] = "chrome://bugreport/"; 68 const char kChromeUIBugReportURL[] = "chrome://bugreport/";
71 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; 69 const char kChromeUIDevToolsURL[] = "chrome://devtools/";
72 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; 70 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
73 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; 71 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
74 const char kChromeUIFavIconURL[] = "chrome://favicon/"; 72 const char kChromeUIFavIconURL[] = "chrome://favicon/";
75 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/"; 73 const char kChromeUIFileBrowseURL[] = "chrome://filebrowse/";
74 const char kChromeUIHistoryURL[] = "chrome://history/";
76 const char kChromeUIHistory2URL[] = "chrome://history2/"; 75 const char kChromeUIHistory2URL[] = "chrome://history2/";
77 const char kChromeUIHistoryURL[] = "chrome://history/";
78 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/"; 76 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
79 const char kChromeUIIPCURL[] = "chrome://about/ipc"; 77 const char kChromeUIIPCURL[] = "chrome://about/ipc";
80 const char kChromeUILabsURL[] = "chrome://labs/";
81 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; 78 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
82 const char kChromeUINewTabURL[] = "chrome://newtab"; 79 const char kChromeUINewTabURL[] = "chrome://newtab";
83 const char kChromeUIOptionsURL[] = "chrome://options/"; 80 const char kChromeUIOptionsURL[] = "chrome://options/";
84 const char kChromeUIPluginsURL[] = "chrome://plugins/"; 81 const char kChromeUIPluginsURL[] = "chrome://plugins/";
85 const char kChromeUIPrintURL[] = "chrome://print/"; 82 const char kChromeUIPrintURL[] = "chrome://print/";
86 const char kChromeUIRegisterPageURL[] = "chrome://register/"; 83 const char kChromeUIRegisterPageURL[] = "chrome://register/";
87 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; 84 const char kChromeUISlideshowURL[] = "chrome://slideshow/";
88 85
89 const char kChromeUIBookmarksHost[] = "bookmarks"; 86 const char kChromeUIBookmarksHost[] = "bookmarks";
90 const char kChromeUIBugReportHost[] = "bugreport"; 87 const char kChromeUIBugReportHost[] = "bugreport";
91 const char kChromeUIDevToolsHost[] = "devtools"; 88 const char kChromeUIDevToolsHost[] = "devtools";
92 const char kChromeUIDialogHost[] = "dialog"; 89 const char kChromeUIDialogHost[] = "dialog";
93 const char kChromeUIDownloadsHost[] = "downloads"; 90 const char kChromeUIDownloadsHost[] = "downloads";
94 const char kChromeUIExtensionsHost[] = "extensions"; 91 const char kChromeUIExtensionsHost[] = "extensions";
95 const char kChromeUIFavIconHost[] = "favicon"; 92 const char kChromeUIFavIconHost[] = "favicon";
96 const char kChromeUIFileBrowseHost[] = "filebrowse"; 93 const char kChromeUIFileBrowseHost[] = "filebrowse";
97 const char kChromeUIHistoryHost[] = "history"; 94 const char kChromeUIHistoryHost[] = "history";
98 const char kChromeUIHistory2Host[] = "history2"; 95 const char kChromeUIHistory2Host[] = "history2";
99 const char kChromeUIImageBurnerHost[] = "imageburner"; 96 const char kChromeUIImageBurnerHost[] = "imageburner";
100 const char kChromeUIInspectorHost[] = "inspector"; 97 const char kChromeUIInspectorHost[] = "inspector";
101 const char kChromeUILabsHost[] = "labs";
102 const char kChromeUIMediaplayerHost[] = "mediaplayer"; 98 const char kChromeUIMediaplayerHost[] = "mediaplayer";
103 const char kChromeUINetInternalsHost[] = "net-internals"; 99 const char kChromeUINetInternalsHost[] = "net-internals";
104 const char kChromeUINewTabHost[] = "newtab"; 100 const char kChromeUINewTabHost[] = "newtab";
105 const char kChromeUIOptionsHost[] = "options"; 101 const char kChromeUIOptionsHost[] = "options";
106 const char kChromeUIPluginsHost[] = "plugins"; 102 const char kChromeUIPluginsHost[] = "plugins";
107 const char kChromeUIPrintHost[] = "print"; 103 const char kChromeUIPrintHost[] = "print";
108 const char kChromeUIRegisterPageHost[] = "register"; 104 const char kChromeUIRegisterPageHost[] = "register";
109 const char kChromeUIRemotingHost[] = "remoting"; 105 const char kChromeUIRemotingHost[] = "remoting";
110 const char kChromeUIResourcesHost[] = "resources"; 106 const char kChromeUIResourcesHost[] = "resources";
111 const char kChromeUISlideshowHost[] = "slideshow"; 107 const char kChromeUISlideshowHost[] = "slideshow";
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 143
148 // Prevent future modification of the standard schemes list. This is to 144 // Prevent future modification of the standard schemes list. This is to
149 // prevent accidental creation of data races in the program. AddStandardScheme 145 // prevent accidental creation of data races in the program. AddStandardScheme
150 // isn't threadsafe so must be called when GURL isn't used on any other 146 // isn't threadsafe so must be called when GURL isn't used on any other
151 // thread. This is really easy to mess up, so we say that all calls to 147 // thread. This is really easy to mess up, so we say that all calls to
152 // AddStandardScheme in Chrome must be inside this function. 148 // AddStandardScheme in Chrome must be inside this function.
153 url_util::LockStandardSchemes(); 149 url_util::LockStandardSchemes();
154 } 150 }
155 151
156 } // namespace chrome 152 } // 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