| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 virtual void runScriptsAtDocumentIdle() = 0; | 226 virtual void runScriptsAtDocumentIdle() = 0; |
| 227 | 227 |
| 228 virtual void didCreateScriptContext(v8::Local<v8::Context>, int worldId) = 0; | 228 virtual void didCreateScriptContext(v8::Local<v8::Context>, int worldId) = 0; |
| 229 virtual void willReleaseScriptContext(v8::Local<v8::Context>, | 229 virtual void willReleaseScriptContext(v8::Local<v8::Context>, |
| 230 int worldId) = 0; | 230 int worldId) = 0; |
| 231 virtual bool allowScriptExtensions() = 0; | 231 virtual bool allowScriptExtensions() = 0; |
| 232 | 232 |
| 233 virtual void didChangeScrollOffset() {} | 233 virtual void didChangeScrollOffset() {} |
| 234 virtual void didUpdateCurrentHistoryItem() {} | 234 virtual void didUpdateCurrentHistoryItem() {} |
| 235 | 235 |
| 236 virtual bool allowScript(bool enabledPerSettings) { | |
| 237 return enabledPerSettings; | |
| 238 } | |
| 239 virtual bool allowScriptFromSource(bool enabledPerSettings, const KURL&) { | |
| 240 return enabledPerSettings; | |
| 241 } | |
| 242 virtual bool allowPlugins(bool enabledPerSettings) { | |
| 243 return enabledPerSettings; | |
| 244 } | |
| 245 virtual bool allowImage(bool enabledPerSettings, const KURL&) { | |
| 246 return enabledPerSettings; | |
| 247 } | |
| 248 virtual bool allowRunningInsecureContent(bool enabledPerSettings, | |
| 249 SecurityOrigin*, | |
| 250 const KURL&) { | |
| 251 return enabledPerSettings; | |
| 252 } | |
| 253 virtual bool allowAutoplay(bool defaultValue) { return defaultValue; } | |
| 254 | |
| 255 // Reports that passive mixed content was found at the provided URL. It may or | |
| 256 // may not be actually displayed later, what would be flagged by | |
| 257 // didDisplayInsecureContent. | |
| 258 virtual void passiveInsecureContentFound(const KURL&) {} | |
| 259 | |
| 260 // This callback notifies the client that the frame was about to run | |
| 261 // JavaScript but did not because allowScript returned false. We have a | |
| 262 // separate callback here because there are a number of places that need to | |
| 263 // know if JavaScript is enabled but are not necessarily preparing to execute | |
| 264 // script. | |
| 265 virtual void didNotAllowScript() {} | |
| 266 // This callback is similar, but for plugins. | |
| 267 virtual void didNotAllowPlugins() {} | |
| 268 | |
| 269 virtual WebCookieJar* cookieJar() const = 0; | 236 virtual WebCookieJar* cookieJar() const = 0; |
| 270 | 237 |
| 271 virtual void didChangeName(const String&) {} | 238 virtual void didChangeName(const String&) {} |
| 272 | 239 |
| 273 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} | 240 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} |
| 274 | 241 |
| 275 virtual void didUpdateToUniqueOrigin() {} | 242 virtual void didUpdateToUniqueOrigin() {} |
| 276 | 243 |
| 277 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {} | 244 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {} |
| 278 | 245 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 295 return enabledPerSettings; | 262 return enabledPerSettings; |
| 296 } | 263 } |
| 297 | 264 |
| 298 // If an HTML document is being loaded, informs the embedder that the document | 265 // If an HTML document is being loaded, informs the embedder that the document |
| 299 // will have its <body> attached soon. | 266 // will have its <body> attached soon. |
| 300 virtual void dispatchWillInsertBody() {} | 267 virtual void dispatchWillInsertBody() {} |
| 301 | 268 |
| 302 virtual std::unique_ptr<WebServiceWorkerProvider> | 269 virtual std::unique_ptr<WebServiceWorkerProvider> |
| 303 createServiceWorkerProvider() = 0; | 270 createServiceWorkerProvider() = 0; |
| 304 | 271 |
| 272 virtual ContentSettingsClient& contentSettingsClient() = 0; |
| 273 |
| 305 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { | 274 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { |
| 306 return 0; | 275 return 0; |
| 307 } | 276 } |
| 308 | 277 |
| 309 virtual std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( | 278 virtual std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( |
| 310 WebApplicationCacheHostClient*) = 0; | 279 WebApplicationCacheHostClient*) = 0; |
| 311 | 280 |
| 312 virtual void dispatchDidChangeManifest() {} | 281 virtual void dispatchDidChangeManifest() {} |
| 313 | 282 |
| 314 virtual unsigned backForwardLength() { return 0; } | 283 virtual unsigned backForwardLength() { return 0; } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 342 virtual BlameContext* frameBlameContext() { return nullptr; } | 311 virtual BlameContext* frameBlameContext() { return nullptr; } |
| 343 | 312 |
| 344 virtual void setHasReceivedUserGesture() {} | 313 virtual void setHasReceivedUserGesture() {} |
| 345 | 314 |
| 346 virtual void abortClientNavigation() {} | 315 virtual void abortClientNavigation() {} |
| 347 }; | 316 }; |
| 348 | 317 |
| 349 } // namespace blink | 318 } // namespace blink |
| 350 | 319 |
| 351 #endif // LocalFrameClient_h | 320 #endif // LocalFrameClient_h |
| OLD | NEW |