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

Side by Side Diff: Source/web/WebSecurityPolicy.cpp

Issue 1191793003: [Service Worker Registration] removed protocolIsInHTTPFamily and replaced with SchemeRegistry check (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments Created 5 years, 5 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 | « Source/platform/weborigin/SchemeRegistry.cpp ('k') | public/web/WebSecurityPolicy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool WebSecurityPolicy::shouldTreatURLSchemeAsSecure(const WebString& scheme) 69 bool WebSecurityPolicy::shouldTreatURLSchemeAsSecure(const WebString& scheme)
70 { 70 {
71 return SchemeRegistry::shouldTreatURLSchemeAsSecure(scheme); 71 return SchemeRegistry::shouldTreatURLSchemeAsSecure(scheme);
72 } 72 }
73 73
74 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme) 74 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme)
75 { 75 {
76 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); 76 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme);
77 } 77 }
78 78
79 void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers(const WebStrin g& scheme)
80 {
81 SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme);
82 }
83
79 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme) 84 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme)
80 { 85 {
81 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); 86 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);
82 } 87 }
83 88
84 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme, PolicyAreas policyAreas) 89 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme, PolicyAreas policyAreas)
85 { 90 {
86 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme, st atic_cast<SchemeRegistry::PolicyAreas>(policyAreas)); 91 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme, st atic_cast<SchemeRegistry::PolicyAreas>(policyAreas));
87 } 92 }
88 93
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 { 132 {
128 return SecurityPolicy::generateReferrer(static_cast<ReferrerPolicy>(referrer Policy), url, referrer).referrer; 133 return SecurityPolicy::generateReferrer(static_cast<ReferrerPolicy>(referrer Policy), url, referrer).referrer;
129 } 134 }
130 135
131 void WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs(const WebSt ring& scheme) 136 void WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs(const WebSt ring& scheme)
132 { 137 {
133 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); 138 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme);
134 } 139 }
135 140
136 } // namespace blink 141 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/weborigin/SchemeRegistry.cpp ('k') | public/web/WebSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698