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

Unified Diff: third_party/WebKit/public/web/WebContentSettingsClient.h

Issue 1417033010: Adding <keygen> Content Setting (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_core
Patch Set: Clean up code. Created 5 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
Index: third_party/WebKit/public/web/WebContentSettingsClient.h
diff --git a/third_party/WebKit/public/web/WebContentSettingsClient.h b/third_party/WebKit/public/web/WebContentSettingsClient.h
index dc957e1f5e4cde1cf2e9410ca3ec9c45f9033698..f922e73d1312c660134d0194d08a19faf156de7f 100644
--- a/third_party/WebKit/public/web/WebContentSettingsClient.h
+++ b/third_party/WebKit/public/web/WebContentSettingsClient.h
@@ -33,6 +33,9 @@ public:
// Controls whether HTML5 media elements (<audio>, <video>) are allowed for this frame.
virtual bool allowMedia(const WebURL& videoURL) { return true; }
+ // Controls whether keygen is allowed for this frame.
+ virtual bool allowKeygen() { return false; }
+
// Controls whether plugins are allowed for this frame.
virtual bool allowPlugins(bool enabledPerSettings) { return enabledPerSettings; }
@@ -78,6 +81,9 @@ public:
// but it's been named for consistency with the rest of the interface.
virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; }
+ // Notifies the client that the frame would have instantiated a keygen if keygen was enabled.
+ virtual void didNotAllowKeygen() { }
+
// Notifies the client that the frame would have instantiated a plugin if plugins were enabled.
virtual void didNotAllowPlugins() { }

Powered by Google App Engine
This is Rietveld 408576698