| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
| 11 #if defined(OS_CHROMEOS) | 11 #if defined(OS_CHROMEOS) |
| 12 const char kCrosScheme[] = "cros"; | 12 const char kCrosScheme[] = "cros"; |
| 13 const char kDriveScheme[] = "drive"; | 13 const char kDriveScheme[] = "drive"; |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 #if defined(OS_ANDROID) | 16 #if defined(OS_ANDROID) |
| 17 const char kContentScheme[] = "content"; | 17 const char kContentScheme[] = "content"; |
| 18 const char kAndroidAssetPath[] = "/android_asset/"; |
| 19 const char kAndroidResourcePath[] = "/android_res/"; |
| 18 #endif | 20 #endif |
| 19 | 21 |
| 20 const char kAboutPluginsURL[] = "about:plugins"; | 22 const char kAboutPluginsURL[] = "about:plugins"; |
| 21 const char kAboutVersionURL[] = "about:version"; | 23 const char kAboutVersionURL[] = "about:version"; |
| 22 | 24 |
| 23 // Add Chrome UI URLs as necessary, in alphabetical order. | 25 // Add Chrome UI URLs as necessary, in alphabetical order. |
| 24 // Be sure to add the corresponding kChromeUI*Host constant below. | 26 // Be sure to add the corresponding kChromeUI*Host constant below. |
| 25 // This is a WebUI page that lists other WebUI pages. | 27 // This is a WebUI page that lists other WebUI pages. |
| 26 const char kChromeUIAboutURL[] = "chrome://about/"; | 28 const char kChromeUIAboutURL[] = "chrome://about/"; |
| 27 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; | 29 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 kChromeUIGpuCrashURL, | 476 kChromeUIGpuCrashURL, |
| 475 kChromeUIGpuHangURL, | 477 kChromeUIGpuHangURL, |
| 476 }; | 478 }; |
| 477 const int kNumberOfChromeDebugURLs = | 479 const int kNumberOfChromeDebugURLs = |
| 478 static_cast<int>(arraysize(kChromeDebugURLs)); | 480 static_cast<int>(arraysize(kChromeDebugURLs)); |
| 479 | 481 |
| 480 const char kExtensionScheme[] = "chrome-extension"; | 482 const char kExtensionScheme[] = "chrome-extension"; |
| 481 const char kExtensionResourceScheme[] = "chrome-extension-resource"; | 483 const char kExtensionResourceScheme[] = "chrome-extension-resource"; |
| 482 | 484 |
| 483 } // namespace chrome | 485 } // namespace chrome |
| OLD | NEW |