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

Unified Diff: Source/web/WebReentrantScriptForbiddenScope.cpp

Issue 1170413003: Add a scoping object to help block scripting during plugin destruction. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months 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: Source/web/WebReentrantScriptForbiddenScope.cpp
diff --git a/Source/modules/webaudio/testing/InternalsWebAudio.cpp b/Source/web/WebReentrantScriptForbiddenScope.cpp
similarity index 51%
copy from Source/modules/webaudio/testing/InternalsWebAudio.cpp
copy to Source/web/WebReentrantScriptForbiddenScope.cpp
index 631b8abb2f75a26a595a1d7bd6926f237171dc23..5823f4ab984166d7c62ff6597bc3bbff15b6837c 100644
--- a/Source/modules/webaudio/testing/InternalsWebAudio.cpp
+++ b/Source/web/WebReentrantScriptForbiddenScope.cpp
@@ -3,15 +3,15 @@
// found in the LICENSE file.
#include "config.h"
-#include "modules/webaudio/testing/InternalsWebAudio.h"
+#include "public/web/WebReentrantScriptForbiddenScope.h"
-#include "modules/webaudio/AudioNode.h"
+#include "platform/ReentrantScriptForbiddenScope.h"
namespace blink {
-unsigned InternalsWebAudio::audioHandlerCount(Internals& internals)
+bool WebReentrantScriptForbiddenScope::isForbidden()
{
- return AudioHandler::instanceCount();
+ return ReentrantScriptForbiddenScope::isForbidden();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698