| 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 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 extern const char* const kChromeDebugURLs[]; | 404 extern const char* const kChromeDebugURLs[]; |
| 405 extern const int kNumberOfChromeDebugURLs; | 405 extern const int kNumberOfChromeDebugURLs; |
| 406 | 406 |
| 407 // Canonical schemes you can use as input to GURL.SchemeIs(). | 407 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 408 extern const char kExtensionResourceScheme[]; | 408 extern const char kExtensionResourceScheme[]; |
| 409 | 409 |
| 410 // The chrome-search: scheme is served by the same backend as chrome:. However, | 410 // The chrome-search: scheme is served by the same backend as chrome:. However, |
| 411 // only specific URLDataSources are enabled to serve requests via the | 411 // only specific URLDataSources are enabled to serve requests via the |
| 412 // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its | 412 // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its |
| 413 // callers for details. Note that WebUIBindings should never be granted to | 413 // callers for details. Note that WebUIBindings should never be granted to |
| 414 // chrome-search: pages. | 414 // chrome-search: pages. chrome-search: pages are displayable but not readable |
| 415 // by external search providers (that are rendered by Instant renderer |
| 416 // processes), and neither displayable nor readable by normal (non-Instant) web |
| 417 // pages. To summarize, a non-Instant process, when trying to access |
| 418 // 'chrome-search://something', will bump up against the following: |
| 419 // |
| 420 // 1. Renderer: The display-isolated check in WebKit will deny the request, |
| 421 // 2. Browser: Assuming they got by #1, the scheme checks in |
| 422 // URLDataSource::ShouldServiceRequest will deny the request, |
| 423 // 3. Browser: for specific sub-classes of URLDataSource, like ThemeSource |
| 424 // there are additional Instant-PID checks that make sure the request is |
| 425 // coming from a blessed Instant process, and deny the request. |
| 415 extern const char kChromeSearchScheme[]; | 426 extern const char kChromeSearchScheme[]; |
| 416 | 427 |
| 417 // The local omnibox host and pages under chrome-search. | 428 // The local omnibox host and pages under chrome-search. |
| 418 extern const char kChromeSearchLocalOmniboxPopupHost[]; | 429 extern const char kChromeSearchLocalOmniboxPopupHost[]; |
| 419 extern const char kChromeSearchLocalOmniboxPopupURL[]; | 430 extern const char kChromeSearchLocalOmniboxPopupURL[]; |
| 420 | 431 |
| 421 #if defined(OS_CHROMEOS) | 432 #if defined(OS_CHROMEOS) |
| 422 extern const char kCrosScheme[]; | 433 extern const char kCrosScheme[]; |
| 423 extern const char kDriveScheme[]; | 434 extern const char kDriveScheme[]; |
| 424 | 435 |
| 425 // "Learn more" URL for the Cloud Print section under Options. | 436 // "Learn more" URL for the Cloud Print section under Options. |
| 426 extern const char kCloudPrintLearnMoreURL[]; | 437 extern const char kCloudPrintLearnMoreURL[]; |
| 427 #endif | 438 #endif |
| 428 | 439 |
| 429 // Parameters that get appended to force SafeSearch. | 440 // Parameters that get appended to force SafeSearch. |
| 430 extern const char kSafeSearchSafeParameter[]; | 441 extern const char kSafeSearchSafeParameter[]; |
| 431 extern const char kSafeSearchSsuiParameter[]; | 442 extern const char kSafeSearchSsuiParameter[]; |
| 432 | 443 |
| 433 // The URL for the "Learn more" link in the media access infobar. | 444 // The URL for the "Learn more" link in the media access infobar. |
| 434 extern const char kMediaAccessLearnMoreUrl[]; | 445 extern const char kMediaAccessLearnMoreUrl[]; |
| 435 | 446 |
| 436 } // namespace chrome | 447 } // namespace chrome |
| 437 | 448 |
| 438 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 449 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |