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 // Contains constants for known URLs and portions thereof. | 5 // Contains constants for known URLs and portions thereof. |
6 | 6 |
7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ | 7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ |
8 #define CHROME_COMMON_URL_CONSTANTS_H_ | 8 #define CHROME_COMMON_URL_CONSTANTS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
| 11 #include <string> |
| 12 #include <vector> |
| 13 |
11 #include "build/build_config.h" | 14 #include "build/build_config.h" |
12 #include "content/public/common/url_constants.h" | 15 #include "content/public/common/url_constants.h" |
13 | 16 |
14 namespace chrome { | 17 namespace chrome { |
15 | 18 |
16 // TODO(msw): Resolve chrome_frame dependency on these constants. | 19 // TODO(msw): Resolve chrome_frame dependency on these constants. |
17 extern const char kAboutPluginsURL[]; | 20 extern const char kAboutPluginsURL[]; |
18 extern const char kAboutVersionURL[]; | 21 extern const char kAboutVersionURL[]; |
19 | 22 |
20 // chrome: URLs (including schemes). Should be kept in sync with the | 23 // chrome: URLs (including schemes). Should be kept in sync with the |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // The URL to create a new Google account via sync. | 341 // The URL to create a new Google account via sync. |
339 extern const char kSyncCreateNewAccountURL[]; | 342 extern const char kSyncCreateNewAccountURL[]; |
340 | 343 |
341 // "Debug" pages which are dangerous and not for general consumption. | 344 // "Debug" pages which are dangerous and not for general consumption. |
342 extern const char* const kChromeDebugURLs[]; | 345 extern const char* const kChromeDebugURLs[]; |
343 extern int kNumberOfChromeDebugURLs; | 346 extern int kNumberOfChromeDebugURLs; |
344 | 347 |
345 // Canonical schemes you can use as input to GURL.SchemeIs(). | 348 // Canonical schemes you can use as input to GURL.SchemeIs(). |
346 extern const char kExtensionScheme[]; | 349 extern const char kExtensionScheme[]; |
347 | 350 |
348 // Call near the beginning of startup to register Chrome's internal URLs that | |
349 // should be parsed as "standard" with the googleurl library. | |
350 void RegisterChromeSchemes(); | |
351 | |
352 #if defined(OS_CHROMEOS) | 351 #if defined(OS_CHROMEOS) |
353 // "Learn more" URL for the Cloud Print section under Options. | 352 // "Learn more" URL for the Cloud Print section under Options. |
354 extern const char kCloudPrintLearnMoreURL[]; | 353 extern const char kCloudPrintLearnMoreURL[]; |
355 #endif | 354 #endif |
356 | 355 |
357 } // namespace chrome | 356 } // namespace chrome |
358 | 357 |
359 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 358 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |