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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int world
Id) = 0; | 173 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int world
Id) = 0; |
174 virtual bool allowScriptExtension(const String& extensionName, int exten
sionGroup, int worldId) = 0; | 174 virtual bool allowScriptExtension(const String& extensionName, int exten
sionGroup, int worldId) = 0; |
175 | 175 |
176 virtual void didChangeScrollOffset() { } | 176 virtual void didChangeScrollOffset() { } |
177 virtual void didUpdateCurrentHistoryItem() { } | 177 virtual void didUpdateCurrentHistoryItem() { } |
178 | 178 |
179 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSet
tings; } | 179 virtual bool allowScript(bool enabledPerSettings) { return enabledPerSet
tings; } |
180 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&)
{ return enabledPerSettings; } | 180 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&)
{ return enabledPerSettings; } |
181 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSe
ttings; } | 181 virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSe
ttings; } |
182 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return e
nabledPerSettings; } | 182 virtual bool allowImage(bool enabledPerSettings, const KURL&) { return e
nabledPerSettings; } |
| 183 virtual bool allowMedia(const KURL&) { return true; } |
183 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Sec
urityOrigin*, const KURL&) { return enabledPerSettings; } | 184 virtual bool allowDisplayingInsecureContent(bool enabledPerSettings, Sec
urityOrigin*, const KURL&) { return enabledPerSettings; } |
184 virtual bool allowRunningInsecureContent(bool enabledPerSettings, Securi
tyOrigin*, const KURL&) { return enabledPerSettings; } | 185 virtual bool allowRunningInsecureContent(bool enabledPerSettings, Securi
tyOrigin*, const KURL&) { return enabledPerSettings; } |
185 | 186 |
186 // This callback notifies the client that the frame was about to run | 187 // This callback notifies the client that the frame was about to run |
187 // JavaScript but did not because allowScript returned false. We | 188 // JavaScript but did not because allowScript returned false. We |
188 // have a separate callback here because there are a number of places | 189 // have a separate callback here because there are a number of places |
189 // that need to know if JavaScript is enabled but are not necessarily | 190 // that need to know if JavaScript is enabled but are not necessarily |
190 // preparing to execute script. | 191 // preparing to execute script. |
191 virtual void didNotAllowScript() { } | 192 virtual void didNotAllowScript() { } |
192 // This callback is similar, but for plugins. | 193 // This callback is similar, but for plugins. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 virtual void didStopAllLoaders() { } | 226 virtual void didStopAllLoaders() { } |
226 | 227 |
227 virtual void dispatchDidChangeManifest() { } | 228 virtual void dispatchDidChangeManifest() { } |
228 | 229 |
229 virtual bool isFrameLoaderClientImpl() const { return false; } | 230 virtual bool isFrameLoaderClientImpl() const { return false; } |
230 }; | 231 }; |
231 | 232 |
232 } // namespace WebCore | 233 } // namespace WebCore |
233 | 234 |
234 #endif // FrameLoaderClient_h | 235 #endif // FrameLoaderClient_h |
OLD | NEW |