Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: webkit/api/public/WebFrameClient.h

Issue 351013: Chrome changes to extract the code from V8Proxy that special-cases... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | webkit/api/public/WebKitClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebFrameClient.h
===================================================================
--- webkit/api/public/WebFrameClient.h (revision 30634)
+++ webkit/api/public/WebFrameClient.h (working copy)
@@ -90,10 +90,7 @@
virtual WebNavigationPolicy decidePolicyForNavigation(
WebFrame*, const WebURLRequest&, WebNavigationType,
const WebNode& originatingNode,
- WebNavigationPolicy defaultPolicy, bool isRedirect)
- {
- return defaultPolicy;
- }
+ WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPolicy; }
// Query if the specified request can be handled.
virtual bool canHandleRequest(
@@ -109,19 +106,19 @@
// Notify that a URL cannot be handled.
virtual void unableToImplementPolicyWithError(
- WebFrame*, const WebURLError&) { };
+ WebFrame*, const WebURLError&) { }
// Navigational notifications ------------------------------------------
// A form submission is about to occur.
- virtual void willSubmitForm(WebFrame*, const WebForm&) { };
+ virtual void willSubmitForm(WebFrame*, const WebForm&) { }
// A client-side redirect will occur. This may correspond to a <META
// refresh> or some script activity.
virtual void willPerformClientRedirect(
WebFrame*, const WebURL& from, const WebURL& to,
- double interval, double fireTime) { };
+ double interval, double fireTime) { }
// A client-side redirect was cancelled.
virtual void didCancelClientRedirect(WebFrame*) { }
@@ -234,6 +231,9 @@
// Script notifications ------------------------------------------------
+ // Controls whether scripts are allowed to execute for this frame.
+ virtual bool allowScript(WebFrame*, bool enabledPerSettings) { return enabledPerSettings; }
+
// Script in the page tried to allocate too much memory.
virtual void didExhaustMemoryAvailableForScript(WebFrame*) { }
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | webkit/api/public/WebKitClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698