| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebContentSettingsClient_h | 5 #ifndef WebContentSettingsClient_h |
| 6 #define WebContentSettingsClient_h | 6 #define WebContentSettingsClient_h |
| 7 | 7 |
| 8 #include "public/platform/WebPermissionCallbacks.h" | 8 #include "public/platform/WebPermissionCallbacks.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue;
} | 71 virtual bool allowWriteToClipboard(bool defaultValue) { return defaultValue;
} |
| 72 | 72 |
| 73 // Controls whether enabling Web Components API for this frame. | 73 // Controls whether enabling Web Components API for this frame. |
| 74 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; } | 74 virtual bool allowWebComponents(bool defaultValue) { return defaultValue; } |
| 75 | 75 |
| 76 // Controls whether to enable MutationEvents for this frame. | 76 // Controls whether to enable MutationEvents for this frame. |
| 77 // The common use case of this method is actually to selectively disable Mut
ationEvents, | 77 // The common use case of this method is actually to selectively disable Mut
ationEvents, |
| 78 // but it's been named for consistency with the rest of the interface. | 78 // but it's been named for consistency with the rest of the interface. |
| 79 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; } | 79 virtual bool allowMutationEvents(bool defaultValue) { return defaultValue; } |
| 80 | 80 |
| 81 // Notifies the client that the frame would have instantiated a plug-in if p
lug-ins were enabled. | 81 // Notifies the client that the frame would have instantiated a plugin if pl
ugins were enabled. |
| 82 virtual void didNotAllowPlugins() { } | 82 virtual void didNotAllowPlugins() { } |
| 83 | 83 |
| 84 // Notifies the client that the frame would have executed script if script w
ere enabled. | 84 // Notifies the client that the frame would have executed script if script w
ere enabled. |
| 85 virtual void didNotAllowScript() { } | 85 virtual void didNotAllowScript() { } |
| 86 | 86 |
| 87 protected: | 87 protected: |
| 88 ~WebContentSettingsClient() { } | 88 ~WebContentSettingsClient() { } |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace blink | 91 } // namespace blink |
| 92 | 92 |
| 93 #endif // WebContentSettingsClient_h | 93 #endif // WebContentSettingsClient_h |
| OLD | NEW |