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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 const WebURL& sourceOrigin, const WebString& destinationProtocol, | 106 const WebURL& sourceOrigin, const WebString& destinationProtocol, |
107 const WebString& destinationHost, bool allowDestinationSubdomains); | 107 const WebString& destinationHost, bool allowDestinationSubdomains); |
108 BLINK_EXPORT static void removeOriginAccessWhitelistEntry( | 108 BLINK_EXPORT static void removeOriginAccessWhitelistEntry( |
109 const WebURL& sourceOrigin, const WebString& destinationProtocol, | 109 const WebURL& sourceOrigin, const WebString& destinationProtocol, |
110 const WebString& destinationHost, bool allowDestinationSubdomains); | 110 const WebString& destinationHost, bool allowDestinationSubdomains); |
111 BLINK_EXPORT static void resetOriginAccessWhitelists(); | 111 BLINK_EXPORT static void resetOriginAccessWhitelists(); |
112 | 112 |
113 // Support for whitelisting origins to treat them as trustworthy. | 113 // Support for whitelisting origins to treat them as trustworthy. |
114 BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrig
in&); | 114 BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrig
in&); |
115 | 115 |
| 116 // Support for whitelisting schemes as bypassing secure context checks. |
| 117 BLINK_EXPORT static void addSchemeToBypassSecureContextWhitelist(const WebSt
ring&); |
| 118 |
116 // Returns the referrer modified according to the referrer policy for a | 119 // Returns the referrer modified according to the referrer policy for a |
117 // navigation to a given URL. If the referrer returned is empty, the | 120 // navigation to a given URL. If the referrer returned is empty, the |
118 // referrer header should be omitted. | 121 // referrer header should be omitted. |
119 BLINK_EXPORT static WebString generateReferrerHeader(WebReferrerPolicy, cons
t WebURL&, const WebString& referrer); | 122 BLINK_EXPORT static WebString generateReferrerHeader(WebReferrerPolicy, cons
t WebURL&, const WebString& referrer); |
120 | 123 |
121 // Registers an URL scheme to not allow manipulation of the loaded page | 124 // Registers an URL scheme to not allow manipulation of the loaded page |
122 // by bookmarklets or javascript: URLs typed in the omnibox. | 125 // by bookmarklets or javascript: URLs typed in the omnibox. |
123 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); | 126 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); |
124 | 127 |
125 private: | 128 private: |
126 WebSecurityPolicy(); | 129 WebSecurityPolicy(); |
127 }; | 130 }; |
128 | 131 |
129 } // namespace blink | 132 } // namespace blink |
130 | 133 |
131 #endif | 134 #endif |
OLD | NEW |