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() { } |