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

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

Issue 193092: Replace a bunch of hardcoded URLs with constants from url_constants.h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/url_constants.h ('k') | chrome/renderer/render_view.cc » ('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) 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 "chrome/common/url_constants.h" 5 #include "chrome/common/url_constants.h"
6 6
7 namespace chrome { 7 namespace chrome {
8 8
9 const char kAboutScheme[] = "about"; 9 const char kAboutScheme[] = "about";
10 const char kChromeInternalScheme[] = "chrome-internal"; 10 const char kChromeInternalScheme[] = "chrome-internal";
(...skipping 12 matching lines...) Expand all
23 const char kViewCacheScheme[] = "view-cache"; 23 const char kViewCacheScheme[] = "view-cache";
24 const char kViewNetInternalScheme[] = "view-net-internal"; 24 const char kViewNetInternalScheme[] = "view-net-internal";
25 const char kViewSourceScheme[] = "view-source"; 25 const char kViewSourceScheme[] = "view-source";
26 26
27 const char kStandardSchemeSeparator[] = "://"; 27 const char kStandardSchemeSeparator[] = "://";
28 28
29 const char kAboutBlankURL[] = "about:blank"; 29 const char kAboutBlankURL[] = "about:blank";
30 const char kAboutCacheURL[] = "about:cache"; 30 const char kAboutCacheURL[] = "about:cache";
31 const char kAboutNetInternalURL[] = "about:net-internal"; 31 const char kAboutNetInternalURL[] = "about:net-internal";
32 const char kAboutCrashURL[] = "about:crash"; 32 const char kAboutCrashURL[] = "about:crash";
33 const char kAboutCreditsURL[] = "about:credits";
33 const char kAboutHangURL[] = "about:hang"; 34 const char kAboutHangURL[] = "about:hang";
34 const char kAboutMemoryURL[] = "about:memory"; 35 const char kAboutMemoryURL[] = "about:memory";
35 const char kAboutShorthangURL[] = "about:shorthang"; 36 const char kAboutShorthangURL[] = "about:shorthang";
37 const char kAboutTermsURL[] = "about:terms";
36 38
37 // Use an obfuscated URL to make this nondiscoverable, we only want this 39 // Use an obfuscated URL to make this nondiscoverable, we only want this
38 // to be used for testing. 40 // to be used for testing.
39 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; 41 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz";
40 42
41 const char kChromeUIDevToolsURL[] = "chrome://devtools/"; 43 const char kChromeUIDevToolsURL[] = "chrome://devtools/";
42 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; 44 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
43 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; 45 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
44 const char kChromeUIHistoryURL[] = "chrome://history/"; 46 const char kChromeUIHistoryURL[] = "chrome://history/";
45 const char kChromeUIIPCURL[] = "chrome://about/ipc"; 47 const char kChromeUIIPCURL[] = "chrome://about/ipc";
(...skipping 11 matching lines...) Expand all
57 const char kChromeUIThumbnailPath[] = "thumb"; 59 const char kChromeUIThumbnailPath[] = "thumb";
58 const char kChromeUIThemePath[] = "theme"; 60 const char kChromeUIThemePath[] = "theme";
59 61
60 const char kSyncResourcesHost[] = "syncresources"; 62 const char kSyncResourcesHost[] = "syncresources";
61 const char kSyncGaiaLoginPath[] = "gaialogin"; 63 const char kSyncGaiaLoginPath[] = "gaialogin";
62 const char kSyncMergeAndSyncPath[] = "mergeandsync"; 64 const char kSyncMergeAndSyncPath[] = "mergeandsync";
63 const char kSyncThrobberPath[] = "throbber.png"; 65 const char kSyncThrobberPath[] = "throbber.png";
64 const char kSyncSetupFlowPath[] = "setup"; 66 const char kSyncSetupFlowPath[] = "setup";
65 67
66 } // namespace chrome 68 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/url_constants.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698