OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId) = 0; | 191 virtual bool allowScriptExtension(const String& extensionName, int extension
Group, int worldId) = 0; |
192 | 192 |
193 virtual void didChangeScrollOffset() { } | 193 virtual void didChangeScrollOffset() { } |
194 virtual void didUpdateCurrentHistoryItem() { } | 194 virtual void didUpdateCurrentHistoryItem() { } |
195 | 195 |
196 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting
s; } | 196 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting
s; } |
197 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r
eturn enabledPerSettings; } | 197 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r
eturn enabledPerSettings; } |
198 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin
gs; } | 198 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin
gs; } |
199 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl
edPerSettings; } | 199 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl
edPerSettings; } |
200 virtual bool allowMedia(const KURL&) { return true; } | 200 virtual bool allowMedia(const KURL&) { return true; } |
201 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K
URL&) { return enabledPerSettings; } | |
202 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr
igin*, const KURL&) { return enabledPerSettings; } | 201 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr
igin*, const KURL&) { return enabledPerSettings; } |
203 virtual bool allowAutoplay(bool defaultValue) { return defaultValue; } | 202 virtual bool allowAutoplay(bool defaultValue) { return defaultValue; } |
204 | 203 |
| 204 // Reports that passive mixed content was found at the provided URL. It may |
| 205 // or may not be actually displayed later, what would be flagged by |
| 206 // didDisplayInsecureContent. |
| 207 virtual void passiveInsecureContentFound(const KURL&) {} |
| 208 |
205 // This callback notifies the client that the frame was about to run | 209 // This callback notifies the client that the frame was about to run |
206 // JavaScript but did not because allowScript returned false. We | 210 // JavaScript but did not because allowScript returned false. We |
207 // have a separate callback here because there are a number of places | 211 // have a separate callback here because there are a number of places |
208 // that need to know if JavaScript is enabled but are not necessarily | 212 // that need to know if JavaScript is enabled but are not necessarily |
209 // preparing to execute script. | 213 // preparing to execute script. |
210 virtual void didNotAllowScript() { } | 214 virtual void didNotAllowScript() { } |
211 // This callback is similar, but for plugins. | 215 // This callback is similar, but for plugins. |
212 virtual void didNotAllowPlugins() { } | 216 virtual void didNotAllowPlugins() { } |
213 | 217 |
214 // This callback notifies the client that the frame created a Keygen element
. | 218 // This callback notifies the client that the frame created a Keygen element
. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web
EffectiveConnectionType::TypeUnknown; } | 278 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web
EffectiveConnectionType::TypeUnknown; } |
275 | 279 |
276 // Overwrites the given URL to use an HTML5 embed if possible. | 280 // Overwrites the given URL to use an HTML5 embed if possible. |
277 // An empty URL is returned if the URL is not overriden. | 281 // An empty URL is returned if the URL is not overriden. |
278 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } | 282 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } |
279 }; | 283 }; |
280 | 284 |
281 } // namespace blink | 285 } // namespace blink |
282 | 286 |
283 #endif // FrameLoaderClient_h | 287 #endif // FrameLoaderClient_h |
OLD | NEW |