| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI( | 53 void WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI( |
| 54 const WebString& scheme) { | 54 const WebString& scheme) { |
| 55 SchemeRegistry::registerURLSchemeAsSupportingFetchAPI(scheme); | 55 SchemeRegistry::registerURLSchemeAsSupportingFetchAPI(scheme); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void WebSecurityPolicy::registerURLSchemeAsFirstPartyWhenTopLevel( | 58 void WebSecurityPolicy::registerURLSchemeAsFirstPartyWhenTopLevel( |
| 59 const WebString& scheme) { | 59 const WebString& scheme) { |
| 60 SchemeRegistry::registerURLSchemeAsFirstPartyWhenTopLevel(scheme); | 60 SchemeRegistry::registerURLSchemeAsFirstPartyWhenTopLevel(scheme); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void WebSecurityPolicy::registerURLSchemeAsEmptyDocument( | |
| 64 const WebString& scheme) { | |
| 65 SchemeRegistry::registerURLSchemeAsEmptyDocument(scheme); | |
| 66 } | |
| 67 | |
| 68 void WebSecurityPolicy::addOriginAccessWhitelistEntry( | 63 void WebSecurityPolicy::addOriginAccessWhitelistEntry( |
| 69 const WebURL& sourceOrigin, | 64 const WebURL& sourceOrigin, |
| 70 const WebString& destinationProtocol, | 65 const WebString& destinationProtocol, |
| 71 const WebString& destinationHost, | 66 const WebString& destinationHost, |
| 72 bool allowDestinationSubdomains) { | 67 bool allowDestinationSubdomains) { |
| 73 SecurityPolicy::addOriginAccessWhitelistEntry( | 68 SecurityPolicy::addOriginAccessWhitelistEntry( |
| 74 *SecurityOrigin::create(sourceOrigin), destinationProtocol, | 69 *SecurityOrigin::create(sourceOrigin), destinationProtocol, |
| 75 destinationHost, allowDestinationSubdomains); | 70 destinationHost, allowDestinationSubdomains); |
| 76 } | 71 } |
| 77 | 72 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const WebString& scheme) { | 107 const WebString& scheme) { |
| 113 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); | 108 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); |
| 114 } | 109 } |
| 115 | 110 |
| 116 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( | 111 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( |
| 117 const WebString& scheme) { | 112 const WebString& scheme) { |
| 118 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); | 113 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); |
| 119 } | 114 } |
| 120 | 115 |
| 121 } // namespace blink | 116 } // namespace blink |
| OLD | NEW |