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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 2760463005: Fix handling of external protocols with PlzNavigate. (Closed)
Patch Set: review comments Created 3 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
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_thread_observer.cc » ('j') | url/url_util.cc » ('J')
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 #include "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 // Treat as secure because communication with them is entirely in the browser, 587 // Treat as secure because communication with them is entirely in the browser,
588 // so there is no danger of manipulation or eavesdropping on communication 588 // so there is no danger of manipulation or eavesdropping on communication
589 // with them by third parties. 589 // with them by third parties.
590 schemes->secure_schemes.push_back(extensions::kExtensionScheme); 590 schemes->secure_schemes.push_back(extensions::kExtensionScheme);
591 591
592 schemes->secure_origins = GetSecureOriginWhitelist(); 592 schemes->secure_origins = GetSecureOriginWhitelist();
593 593
594 schemes->no_access_schemes.push_back(chrome::kChromeNativeScheme); 594 schemes->no_access_schemes.push_back(chrome::kChromeNativeScheme);
595 595
596 // chrome-native: is a scheme used for placeholder navigations that allow
597 // UIs to be drawn with platform native widgets instead of HTML. These pages
598 // should be treated as empty documents that can commit synchronously.
599 schemes->empty_document_schemes.push_back(chrome::kChromeNativeScheme);
600
596 #if BUILDFLAG(ENABLE_EXTENSIONS) 601 #if BUILDFLAG(ENABLE_EXTENSIONS)
597 if (extensions::feature_util::ExtensionServiceWorkersEnabled()) 602 if (extensions::feature_util::ExtensionServiceWorkersEnabled())
598 schemes->service_worker_schemes.push_back(extensions::kExtensionScheme); 603 schemes->service_worker_schemes.push_back(extensions::kExtensionScheme);
599 604
600 // As far as Blink is concerned, they should be allowed to receive CORS 605 // As far as Blink is concerned, they should be allowed to receive CORS
601 // requests. At the Extensions layer, requests will actually be blocked unless 606 // requests. At the Extensions layer, requests will actually be blocked unless
602 // overridden by the web_accessible_resources manifest key. 607 // overridden by the web_accessible_resources manifest key.
603 // TODO(kalman): See what happens with a service worker. 608 // TODO(kalman): See what happens with a service worker.
604 schemes->cors_enabled_schemes.push_back(extensions::kExtensionScheme); 609 schemes->cors_enabled_schemes.push_back(extensions::kExtensionScheme);
605 610
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 if (!origin_trial_policy_) 698 if (!origin_trial_policy_)
694 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); 699 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>();
695 return origin_trial_policy_.get(); 700 return origin_trial_policy_.get();
696 } 701 }
697 702
698 #if defined(OS_ANDROID) 703 #if defined(OS_ANDROID)
699 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { 704 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() {
700 return new ChromeMediaClientAndroid(); 705 return new ChromeMediaClientAndroid();
701 } 706 }
702 #endif // OS_ANDROID 707 #endif // OS_ANDROID
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_thread_observer.cc » ('j') | url/url_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698