OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |