OLD | NEW |
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 const char kChromeUIThumbnailPath[] = "thumb"; | 107 const char kChromeUIThumbnailPath[] = "thumb"; |
108 | 108 |
109 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; | 109 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; |
110 | 110 |
111 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 111 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
112 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 112 const char kCloudPrintResourcesHost[] = "cloudprintresources"; |
113 | 113 |
114 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 114 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
115 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; | 115 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; |
116 | 116 |
| 117 // Option sub pages. |
| 118 const char kDefaultOptionsSubPage[] = ""; |
| 119 const char kBrowserOptionsSubPage[] = "browser"; |
| 120 const char kAdvancedOptionsSubPage[] = "advanced"; |
| 121 const char kSearchEnginesOptionsSubPage[] = "searchEngines"; |
| 122 #if defined(OS_CHROMEOS) |
| 123 const char kSystemOptionsSubPage[] = "system"; |
| 124 const char kLanguageOptionsSubPage[] = "language"; |
| 125 const char kInternetOptionsSubPage[] = "internet"; |
| 126 #endif |
| 127 |
117 void RegisterChromeSchemes() { | 128 void RegisterChromeSchemes() { |
118 // Don't need "chrome-internal" which was used in old versions of Chrome for | 129 // Don't need "chrome-internal" which was used in old versions of Chrome for |
119 // the new tab page. | 130 // the new tab page. |
120 url_util::AddStandardScheme(kChromeUIScheme); | 131 url_util::AddStandardScheme(kChromeUIScheme); |
121 url_util::AddStandardScheme(kGearsScheme); | 132 url_util::AddStandardScheme(kGearsScheme); |
122 url_util::AddStandardScheme(kExtensionScheme); | 133 url_util::AddStandardScheme(kExtensionScheme); |
123 url_util::AddStandardScheme(kMetadataScheme); | 134 url_util::AddStandardScheme(kMetadataScheme); |
124 #if defined(OS_CHROMEOS) | 135 #if defined(OS_CHROMEOS) |
125 url_util::AddStandardScheme(kCrosScheme); | 136 url_util::AddStandardScheme(kCrosScheme); |
126 #endif | 137 #endif |
127 | 138 |
128 // Prevent future modification of the standard schemes list. This is to | 139 // Prevent future modification of the standard schemes list. This is to |
129 // prevent accidental creation of data races in the program. AddStandardScheme | 140 // prevent accidental creation of data races in the program. AddStandardScheme |
130 // isn't threadsafe so must be called when GURL isn't used on any other | 141 // isn't threadsafe so must be called when GURL isn't used on any other |
131 // thread. This is really easy to mess up, so we say that all calls to | 142 // thread. This is really easy to mess up, so we say that all calls to |
132 // AddStandardScheme in Chrome must be inside this function. | 143 // AddStandardScheme in Chrome must be inside this function. |
133 url_util::LockStandardSchemes(); | 144 url_util::LockStandardSchemes(); |
134 } | 145 } |
135 | 146 |
136 } // namespace chrome | 147 } // namespace chrome |
OLD | NEW |