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

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

Issue 2008007: Replace about:net-internals with the javascript-based frontend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: improve a comment Created 10 years, 7 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/chrome_browser.gypi ('k') | net/base/host_resolver_impl.h » ('j') | 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const char kChromeUIDialogHost[] = "dialog"; 72 const char kChromeUIDialogHost[] = "dialog";
73 const char kChromeUIDownloadsHost[] = "downloads"; 73 const char kChromeUIDownloadsHost[] = "downloads";
74 const char kChromeUIExtensionsHost[] = "extensions"; 74 const char kChromeUIExtensionsHost[] = "extensions";
75 const char kChromeUIFavIconHost[] = "favicon"; 75 const char kChromeUIFavIconHost[] = "favicon";
76 const char kChromeUIHistoryHost[] = "history"; 76 const char kChromeUIHistoryHost[] = "history";
77 const char kChromeUIPluginsHost[] = "plugins"; 77 const char kChromeUIPluginsHost[] = "plugins";
78 const char kChromeUIResourcesHost[] = "resources"; 78 const char kChromeUIResourcesHost[] = "resources";
79 const char kChromeUIFileBrowseHost[] = "filebrowse"; 79 const char kChromeUIFileBrowseHost[] = "filebrowse";
80 const char kChromeUIMediaplayerHost[] = "mediaplayer"; 80 const char kChromeUIMediaplayerHost[] = "mediaplayer";
81 const char kChromeUIInspectorHost[] = "inspector"; 81 const char kChromeUIInspectorHost[] = "inspector";
82 // TODO(eroman): This value is temporary, while the page is being implemented. 82 const char kChromeUINetInternalsHost[] = "net-internals";
83 const char kChromeUINetInternalsHost[] = "net2";
84 const char kChromeUINewTabHost[] = "newtab"; 83 const char kChromeUINewTabHost[] = "newtab";
85 const char kChromeUIThumbnailPath[] = "thumb"; 84 const char kChromeUIThumbnailPath[] = "thumb";
86 const char kChromeUIThemePath[] = "theme"; 85 const char kChromeUIThemePath[] = "theme";
87 86
88 const char kSyncResourcesHost[] = "syncresources"; 87 const char kSyncResourcesHost[] = "syncresources";
89 const char kSyncGaiaLoginPath[] = "gaialogin"; 88 const char kSyncGaiaLoginPath[] = "gaialogin";
90 const char kSyncMergeAndSyncPath[] = "mergeandsync"; 89 const char kSyncMergeAndSyncPath[] = "mergeandsync";
91 const char kSyncThrobberPath[] = "throbber.png"; 90 const char kSyncThrobberPath[] = "throbber.png";
92 const char kSyncSetupFlowPath[] = "setup"; 91 const char kSyncSetupFlowPath[] = "setup";
93 const char kSyncSetupDonePath[] = "setupdone"; 92 const char kSyncSetupDonePath[] = "setupdone";
94 93
95 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; 94 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/";
96 95
97 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; 96 const char kNetworkViewInternalsURL[] = "chrome://net-internals/";
98 const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; 97 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/";
99 98
100 void RegisterChromeSchemes() { 99 void RegisterChromeSchemes() {
101 // Don't need "chrome-internal" which was used in old versions of Chrome for 100 // Don't need "chrome-internal" which was used in old versions of Chrome for
102 // the new tab page. 101 // the new tab page.
103 url_util::AddStandardScheme(kChromeUIScheme); 102 url_util::AddStandardScheme(kChromeUIScheme);
104 url_util::AddStandardScheme(kGearsScheme); 103 url_util::AddStandardScheme(kGearsScheme);
105 url_util::AddStandardScheme(kExtensionScheme); 104 url_util::AddStandardScheme(kExtensionScheme);
106 url_util::AddStandardScheme(kMetadataScheme); 105 url_util::AddStandardScheme(kMetadataScheme);
107 106
108 // Prevent future modification of the standard schemes list. This is to 107 // Prevent future modification of the standard schemes list. This is to
109 // prevent accidental creation of data races in the program. AddStandardScheme 108 // prevent accidental creation of data races in the program. AddStandardScheme
110 // isn't threadsafe so must be called when GURL isn't used on any other 109 // isn't threadsafe so must be called when GURL isn't used on any other
111 // thread. This is really easy to mess up, so we say that all calls to 110 // thread. This is really easy to mess up, so we say that all calls to
112 // AddStandardScheme in Chrome must be inside this function. 111 // AddStandardScheme in Chrome must be inside this function.
113 url_util::LockStandardSchemes(); 112 url_util::LockStandardSchemes();
114 } 113 }
115 114
116 } // namespace chrome 115 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | net/base/host_resolver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698