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

Unified Diff: chrome/renderer/content_settings_observer.h

Issue 8773035: Content settings: allow scripts on interstitial pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698