| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 void WebSecurityPolicy::registerURLSchemeAsNoAccess(const WebString& scheme) { | 47 void WebSecurityPolicy::registerURLSchemeAsNoAccess(const WebString& scheme) { |
| 48 SchemeRegistry::registerURLSchemeAsNoAccess(scheme); | 48 SchemeRegistry::registerURLSchemeAsNoAccess(scheme); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( | 51 void WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( |
| 52 const WebString& scheme) { | 52 const WebString& scheme) { |
| 53 SchemeRegistry::registerURLSchemeAsDisplayIsolated(scheme); | 53 SchemeRegistry::registerURLSchemeAsDisplayIsolated(scheme); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void WebSecurityPolicy::registerURLSchemeAsRestrictingMixedContent( | |
| 57 const WebString& scheme) { | |
| 58 SchemeRegistry::registerURLSchemeAsRestrictingMixedContent(scheme); | |
| 59 } | |
| 60 | |
| 61 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) { | 56 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) { |
| 62 SchemeRegistry::registerURLSchemeAsSecure(scheme); | 57 SchemeRegistry::registerURLSchemeAsSecure(scheme); |
| 63 } | 58 } |
| 64 | 59 |
| 65 bool WebSecurityPolicy::shouldTreatURLSchemeAsSecure(const WebString& scheme) { | |
| 66 return SchemeRegistry::shouldTreatURLSchemeAsSecure(scheme); | |
| 67 } | |
| 68 | |
| 69 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled( | 60 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled( |
| 70 const WebString& scheme) { | 61 const WebString& scheme) { |
| 71 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); | 62 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); |
| 72 } | 63 } |
| 73 | 64 |
| 74 void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers( | 65 void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers( |
| 75 const WebString& scheme) { | 66 const WebString& scheme) { |
| 76 SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme); | 67 SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme); |
| 77 } | 68 } |
| 78 | 69 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 const WebString& scheme) { | 141 const WebString& scheme) { |
| 151 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); | 142 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); |
| 152 } | 143 } |
| 153 | 144 |
| 154 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( | 145 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( |
| 155 const WebString& scheme) { | 146 const WebString& scheme) { |
| 156 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); | 147 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); |
| 157 } | 148 } |
| 158 | 149 |
| 159 } // namespace blink | 150 } // namespace blink |
| OLD | NEW |