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