Index: chrome/renderer/content_settings_observer.h |
diff --git a/chrome/renderer/content_settings_observer.h b/chrome/renderer/content_settings_observer.h |
index a76e71cc226b8dfa2efa6b30e2f50d14192549ca..7eb1f0d178cd8497d62d33cd79f37a68eb534307 100644 |
--- a/chrome/renderer/content_settings_observer.h |
+++ b/chrome/renderer/content_settings_observer.h |
@@ -65,6 +65,10 @@ class ContentSettingsObserver |
void DidNotAllowPlugins(WebKit::WebFrame* frame); |
void DidNotAllowScript(WebKit::WebFrame* frame); |
+ // Make all |AllowScript| and |AllowScriptFromSource| calls return true. Used |
+ // for e.g., interstitial pages. |
+ void AllowAllScripts(); |
+ |
private: |
// RenderViewObserver implementation. |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
@@ -94,6 +98,7 @@ class ContentSettingsObserver |
std::map<WebKit::WebFrame*, bool> cached_script_permissions_; |
bool plugins_temporarily_allowed_; |
+ bool all_scripts_allowed_; |
DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
}; |