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