| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "googleurl/src/url_util.h" | 7 #include "googleurl/src/url_util.h" |
| 8 | 8 |
| 9 namespace chrome { | 9 namespace chrome { |
| 10 | 10 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 const char kLearnMoreReportingURL[] = | 273 const char kLearnMoreReportingURL[] = |
| 274 "https://www.google.com/support/chrome/bin/answer.py?answer=96817"; | 274 "https://www.google.com/support/chrome/bin/answer.py?answer=96817"; |
| 275 | 275 |
| 276 const char kOutdatedPluginLearnMoreURL[] = | 276 const char kOutdatedPluginLearnMoreURL[] = |
| 277 "https://www.google.com/support/chrome/bin/answer.py?answer=1181003"; | 277 "https://www.google.com/support/chrome/bin/answer.py?answer=1181003"; |
| 278 | 278 |
| 279 const char kBlockedPluginLearnMoreURL[] = | 279 const char kBlockedPluginLearnMoreURL[] = |
| 280 "https://www.google.com/support/chrome/bin/answer.py?answer=1247383"; | 280 "https://www.google.com/support/chrome/bin/answer.py?answer=1247383"; |
| 281 | 281 |
| 282 const char kSpeechInputAboutURL[] = |
| 283 "https://www.google.com/support/chrome/bin/answer.py?answer=1331723"; |
| 284 |
| 282 const char kLearnMoreRegisterProtocolHandlerURL[] = | 285 const char kLearnMoreRegisterProtocolHandlerURL[] = |
| 283 "http://www.google.com/support/chrome/bin/answer.py?answer=1382847"; | 286 "http://www.google.com/support/chrome/bin/answer.py?answer=1382847"; |
| 284 | 287 |
| 285 #if defined(OS_CHROMEOS) | 288 #if defined(OS_CHROMEOS) |
| 286 const char kCloudPrintLearnMoreURL[] = | 289 const char kCloudPrintLearnMoreURL[] = |
| 287 "https://www.google.com/support/chromeos/bin/topic.py?topic=29023"; | 290 "https://www.google.com/support/chromeos/bin/topic.py?topic=29023"; |
| 288 #endif | 291 #endif |
| 289 | 292 |
| 290 void RegisterChromeSchemes() { | 293 void RegisterChromeSchemes() { |
| 291 // Don't need "chrome-internal" which was used in old versions of Chrome for | 294 // Don't need "chrome-internal" which was used in old versions of Chrome for |
| 292 // the new tab page. | 295 // the new tab page. |
| 293 url_util::AddStandardScheme(kChromeDevToolsScheme); | 296 url_util::AddStandardScheme(kChromeDevToolsScheme); |
| 294 url_util::AddStandardScheme(kChromeUIScheme); | 297 url_util::AddStandardScheme(kChromeUIScheme); |
| 295 url_util::AddStandardScheme(kExtensionScheme); | 298 url_util::AddStandardScheme(kExtensionScheme); |
| 296 url_util::AddStandardScheme(kMetadataScheme); | 299 url_util::AddStandardScheme(kMetadataScheme); |
| 297 #if defined(OS_CHROMEOS) | 300 #if defined(OS_CHROMEOS) |
| 298 url_util::AddStandardScheme(kCrosScheme); | 301 url_util::AddStandardScheme(kCrosScheme); |
| 299 #endif | 302 #endif |
| 300 | 303 |
| 301 // Prevent future modification of the standard schemes list. This is to | 304 // Prevent future modification of the standard schemes list. This is to |
| 302 // prevent accidental creation of data races in the program. AddStandardScheme | 305 // prevent accidental creation of data races in the program. AddStandardScheme |
| 303 // isn't threadsafe so must be called when GURL isn't used on any other | 306 // isn't threadsafe so must be called when GURL isn't used on any other |
| 304 // thread. This is really easy to mess up, so we say that all calls to | 307 // thread. This is really easy to mess up, so we say that all calls to |
| 305 // AddStandardScheme in Chrome must be inside this function. | 308 // AddStandardScheme in Chrome must be inside this function. |
| 306 url_util::LockStandardSchemes(); | 309 url_util::LockStandardSchemes(); |
| 307 } | 310 } |
| 308 | 311 |
| 309 } // namespace chrome | 312 } // namespace chrome |
| OLD | NEW |