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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 1101033003: Move IsOriginSecure() into //content and use it in ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added disallow copy/assign Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index b705da133c5ab5decd532e8a3aeac726d62e3fac..854f7e5a2cd9e276e75aa7c8dc920dafeb5a5a5c 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -551,3 +551,14 @@ bool ChromeContentClient::GetSandboxProfileForSandboxType(
return false;
}
#endif
+
+void ChromeContentClient::AddSecureSchemesAndOrigins(
+ std::set<std::string>* schemes,
+ std::set<GURL>* origins) {
+ schemes->insert(content::kChromeUIScheme);
+ schemes->insert(extensions::kExtensionScheme);
+ schemes->insert(extensions::kExtensionResourceScheme);
+
+ // TODO(kinuko): Handle command-line options for whitelisting
+ // insecure origins. crbug.com/441605
+}
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698