| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Registers an HTTP-like URL scheme that supports the Fetch API. | 55 // Registers an HTTP-like URL scheme that supports the Fetch API. |
| 56 BLINK_EXPORT static void registerURLSchemeAsSupportingFetchAPI( | 56 BLINK_EXPORT static void registerURLSchemeAsSupportingFetchAPI( |
| 57 const WebString&); | 57 const WebString&); |
| 58 | 58 |
| 59 // Registers a URL scheme which will always be considered the first-party when | 59 // Registers a URL scheme which will always be considered the first-party when |
| 60 // loaded in a top-level context. | 60 // loaded in a top-level context. |
| 61 BLINK_EXPORT static void registerURLSchemeAsFirstPartyWhenTopLevel( | 61 BLINK_EXPORT static void registerURLSchemeAsFirstPartyWhenTopLevel( |
| 62 const WebString&); | 62 const WebString&); |
| 63 | 63 |
| 64 // Registers a URL scheme as strictly empty documents, allowing them to | |
| 65 // commit synchronously. | |
| 66 BLINK_EXPORT static void registerURLSchemeAsEmptyDocument(const WebString&); | |
| 67 | |
| 68 // Support for whitelisting access to origins beyond the same-origin policy. | 64 // Support for whitelisting access to origins beyond the same-origin policy. |
| 69 BLINK_EXPORT static void addOriginAccessWhitelistEntry( | 65 BLINK_EXPORT static void addOriginAccessWhitelistEntry( |
| 70 const WebURL& sourceOrigin, | 66 const WebURL& sourceOrigin, |
| 71 const WebString& destinationProtocol, | 67 const WebString& destinationProtocol, |
| 72 const WebString& destinationHost, | 68 const WebString& destinationHost, |
| 73 bool allowDestinationSubdomains); | 69 bool allowDestinationSubdomains); |
| 74 BLINK_EXPORT static void removeOriginAccessWhitelistEntry( | 70 BLINK_EXPORT static void removeOriginAccessWhitelistEntry( |
| 75 const WebURL& sourceOrigin, | 71 const WebURL& sourceOrigin, |
| 76 const WebString& destinationProtocol, | 72 const WebString& destinationProtocol, |
| 77 const WebString& destinationHost, | 73 const WebString& destinationHost, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 103 BLINK_EXPORT static void registerURLSchemeAsAllowedForReferrer( | 99 BLINK_EXPORT static void registerURLSchemeAsAllowedForReferrer( |
| 104 const WebString&); | 100 const WebString&); |
| 105 | 101 |
| 106 private: | 102 private: |
| 107 WebSecurityPolicy(); | 103 WebSecurityPolicy(); |
| 108 }; | 104 }; |
| 109 | 105 |
| 110 } // namespace blink | 106 } // namespace blink |
| 111 | 107 |
| 112 #endif | 108 #endif |
| OLD | NEW |