| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void WebSecurityPolicy::registerURLSchemeAsRestrictingMixedContent(const WebStri
ng& scheme) | 58 void WebSecurityPolicy::registerURLSchemeAsRestrictingMixedContent(const WebStri
ng& scheme) |
| 59 { | 59 { |
| 60 SchemeRegistry::registerURLSchemeAsRestrictingMixedContent(scheme); | 60 SchemeRegistry::registerURLSchemeAsRestrictingMixedContent(scheme); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) | 63 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) |
| 64 { | 64 { |
| 65 SchemeRegistry::registerURLSchemeAsSecure(scheme); | 65 SchemeRegistry::registerURLSchemeAsSecure(scheme); |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool WebSecurityPolicy::shouldTreatURLSchemeAsSecure(const WebString& scheme) |
| 69 { |
| 70 return SchemeRegistry::shouldTreatURLSchemeAsSecure(scheme); |
| 71 } |
| 72 |
| 68 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme) | 73 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme) |
| 69 { | 74 { |
| 70 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); | 75 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); |
| 71 } | 76 } |
| 72 | 77 |
| 73 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const
WebString& scheme) | 78 void WebSecurityPolicy::registerURLSchemeAsBypassingContentSecurityPolicy(const
WebString& scheme) |
| 74 { | 79 { |
| 75 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); | 80 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); |
| 76 } | 81 } |
| 77 | 82 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 { | 121 { |
| 117 return SecurityPolicy::generateReferrer(static_cast<ReferrerPolicy>(referrer
Policy), url, referrer).referrer; | 122 return SecurityPolicy::generateReferrer(static_cast<ReferrerPolicy>(referrer
Policy), url, referrer).referrer; |
| 118 } | 123 } |
| 119 | 124 |
| 120 void WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs(const WebSt
ring& scheme) | 125 void WebSecurityPolicy::registerURLSchemeAsNotAllowingJavascriptURLs(const WebSt
ring& scheme) |
| 121 { | 126 { |
| 122 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); | 127 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); |
| 123 } | 128 } |
| 124 | 129 |
| 125 } // namespace blink | 130 } // namespace blink |
| OLD | NEW |