Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: chrome/common/url_constants.h

Issue 12621008: chrome-search: should not be display-isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to HEAD Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698