| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 virtual void didChangeScrollOffset() { } | 179 virtual void didChangeScrollOffset() { } |
| 180 virtual void didUpdateCurrentHistoryItem() { } | 180 virtual void didUpdateCurrentHistoryItem() { } |
| 181 virtual void didRemoveAllPendingStylesheet() { } | 181 virtual void didRemoveAllPendingStylesheet() { } |
| 182 | 182 |
| 183 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting
s; } | 183 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSetting
s; } |
| 184 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r
eturn enabledPerSettings; } | 184 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { r
eturn enabledPerSettings; } |
| 185 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin
gs; } | 185 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettin
gs; } |
| 186 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl
edPerSettings; } | 186 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return enabl
edPerSettings; } |
| 187 virtual bool allowMedia(const KURL&) { return true; } | 187 virtual bool allowMedia(const KURL&) { return true; } |
| 188 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Securit
yOrigin*, const KURL&) { return enabledPerSettings; } | 188 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, const K
URL&) { return enabledPerSettings; } |
| 189 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr
igin*, const KURL&) { return enabledPerSettings; } | 189 virtual bool allowRunningInsecureContent(bool enabledPerSettings, SecurityOr
igin*, const KURL&) { return enabledPerSettings; } |
| 190 | 190 |
| 191 // This callback notifies the client that the frame was about to run | 191 // This callback notifies the client that the frame was about to run |
| 192 // JavaScript but did not because allowScript returned false. We | 192 // JavaScript but did not because allowScript returned false. We |
| 193 // have a separate callback here because there are a number of places | 193 // have a separate callback here because there are a number of places |
| 194 // that need to know if JavaScript is enabled but are not necessarily | 194 // that need to know if JavaScript is enabled but are not necessarily |
| 195 // preparing to execute script. | 195 // preparing to execute script. |
| 196 virtual void didNotAllowScript() { } | 196 virtual void didNotAllowScript() { } |
| 197 // This callback is similar, but for plugins. | 197 // This callback is similar, but for plugins. |
| 198 virtual void didNotAllowPlugins() { } | 198 virtual void didNotAllowPlugins() { } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 BeforeUnloadHandler, | 249 BeforeUnloadHandler, |
| 250 UnloadHandler, | 250 UnloadHandler, |
| 251 }; | 251 }; |
| 252 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 252 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
| 253 | 253 |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace blink | 256 } // namespace blink |
| 257 | 257 |
| 258 #endif // FrameLoaderClient_h | 258 #endif // FrameLoaderClient_h |
| OLD | NEW |