OLD | NEW |
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 <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 | 9 |
9 namespace chrome { | 10 namespace chrome { |
10 | 11 |
11 const char kAboutScheme[] = "about"; | 12 const char kAboutScheme[] = "about"; |
12 const char kChromeInternalScheme[] = "chrome-internal"; | 13 const char kChromeInternalScheme[] = "chrome-internal"; |
13 const char kChromeUIScheme[] = "chrome"; | 14 const char kChromeUIScheme[] = "chrome"; |
14 const char kDataScheme[] = "data"; | 15 const char kDataScheme[] = "data"; |
15 const char kExtensionScheme[] = "chrome-extension"; | 16 const char kExtensionScheme[] = "chrome-extension"; |
16 const char kFileScheme[] = "file"; | 17 const char kFileScheme[] = "file"; |
17 const char kFtpScheme[] = "ftp"; | 18 const char kFtpScheme[] = "ftp"; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const char kSyncResourcesHost[] = "syncresources"; | 74 const char kSyncResourcesHost[] = "syncresources"; |
74 const char kSyncGaiaLoginPath[] = "gaialogin"; | 75 const char kSyncGaiaLoginPath[] = "gaialogin"; |
75 const char kSyncMergeAndSyncPath[] = "mergeandsync"; | 76 const char kSyncMergeAndSyncPath[] = "mergeandsync"; |
76 const char kSyncThrobberPath[] = "throbber.png"; | 77 const char kSyncThrobberPath[] = "throbber.png"; |
77 const char kSyncSetupFlowPath[] = "setup"; | 78 const char kSyncSetupFlowPath[] = "setup"; |
78 const char kSyncSetupDonePath[] = "setupdone"; | 79 const char kSyncSetupDonePath[] = "setupdone"; |
79 | 80 |
80 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 81 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
81 const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; | 82 const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; |
82 | 83 |
| 84 void RegisterChromeSchemes() { |
| 85 // Don't need "chrome-internal" which was used in old versions of Chrome for |
| 86 // the new tab page. |
| 87 url_util::AddStandardScheme(kChromeUIScheme); |
| 88 url_util::AddStandardScheme(kExtensionScheme); |
| 89 } |
| 90 |
83 } // namespace chrome | 91 } // namespace chrome |
OLD | NEW |