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

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

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