| 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 PluginScriptForbiddenScope_h | 5 #ifndef PluginScriptForbiddenScope_h |
| 6 #define PluginScriptForbiddenScope_h | 6 #define PluginScriptForbiddenScope_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // Similar to ScriptForbiddenScope, but more selective. This is intended to help | 14 // Similar to ScriptForbiddenScope, but more selective. This is intended to help |
| 15 // reduce the number of places where Flash can run a nested message loop as its | 15 // reduce the number of places where Flash can run a nested message loop as its |
| 16 // plugin element is being destroyed. One of the reasons that Flash runs this | 16 // plugin element is being destroyed. One of the reasons that Flash runs this |
| 17 // nested message loop is to allow Flash content to synchronously script the | 17 // nested message loop is to allow Flash content to synchronously script the |
| 18 // page when the plugin element is destroyed. | 18 // page when the plugin element is destroyed. |
| 19 // | 19 // |
| 20 // This is problematic for many reasons: the DOM may not be in a consistent | 20 // This is problematic for many reasons: the DOM may not be in a consistent |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 public: | 45 public: |
| 46 PluginScriptForbiddenScope(); | 46 PluginScriptForbiddenScope(); |
| 47 ~PluginScriptForbiddenScope(); | 47 ~PluginScriptForbiddenScope(); |
| 48 | 48 |
| 49 static bool IsForbidden(); | 49 static bool IsForbidden(); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // PluginScriptForbiddenScope_h | 54 #endif // PluginScriptForbiddenScope_h |
| OLD | NEW |