| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 const char kLearnMoreReportingURL[] = | 267 const char kLearnMoreReportingURL[] = |
| 268 "https://www.google.com/support/chrome/bin/answer.py?answer=96817"; | 268 "https://www.google.com/support/chrome/bin/answer.py?answer=96817"; |
| 269 | 269 |
| 270 const char kOutdatedPluginLearnMoreURL[] = | 270 const char kOutdatedPluginLearnMoreURL[] = |
| 271 "https://www.google.com/support/chrome/bin/answer.py?answer=1181003"; | 271 "https://www.google.com/support/chrome/bin/answer.py?answer=1181003"; |
| 272 | 272 |
| 273 const char kBlockedPluginLearnMoreURL[] = | 273 const char kBlockedPluginLearnMoreURL[] = |
| 274 "https://www.google.com/support/chrome/bin/answer.py?answer=1247383"; | 274 "https://www.google.com/support/chrome/bin/answer.py?answer=1247383"; |
| 275 | 275 |
| 276 const char kSpeechInputAboutURL[] = |
| 277 "https://www.google.com/support/chrome/bin/answer.py?answer=1331723"; |
| 278 |
| 276 void RegisterChromeSchemes() { | 279 void RegisterChromeSchemes() { |
| 277 // Don't need "chrome-internal" which was used in old versions of Chrome for | 280 // Don't need "chrome-internal" which was used in old versions of Chrome for |
| 278 // the new tab page. | 281 // the new tab page. |
| 279 url_util::AddStandardScheme(kChromeDevToolsScheme); | 282 url_util::AddStandardScheme(kChromeDevToolsScheme); |
| 280 url_util::AddStandardScheme(kChromeUIScheme); | 283 url_util::AddStandardScheme(kChromeUIScheme); |
| 281 url_util::AddStandardScheme(kExtensionScheme); | 284 url_util::AddStandardScheme(kExtensionScheme); |
| 282 url_util::AddStandardScheme(kMetadataScheme); | 285 url_util::AddStandardScheme(kMetadataScheme); |
| 283 #if defined(OS_CHROMEOS) | 286 #if defined(OS_CHROMEOS) |
| 284 url_util::AddStandardScheme(kCrosScheme); | 287 url_util::AddStandardScheme(kCrosScheme); |
| 285 #endif | 288 #endif |
| 286 | 289 |
| 287 // Prevent future modification of the standard schemes list. This is to | 290 // Prevent future modification of the standard schemes list. This is to |
| 288 // prevent accidental creation of data races in the program. AddStandardScheme | 291 // prevent accidental creation of data races in the program. AddStandardScheme |
| 289 // isn't threadsafe so must be called when GURL isn't used on any other | 292 // isn't threadsafe so must be called when GURL isn't used on any other |
| 290 // thread. This is really easy to mess up, so we say that all calls to | 293 // thread. This is really easy to mess up, so we say that all calls to |
| 291 // AddStandardScheme in Chrome must be inside this function. | 294 // AddStandardScheme in Chrome must be inside this function. |
| 292 url_util::LockStandardSchemes(); | 295 url_util::LockStandardSchemes(); |
| 293 } | 296 } |
| 294 | 297 |
| 295 } // namespace chrome | 298 } // namespace chrome |
| OLD | NEW |