1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ScriptForbiddenScope_h
6 #define ScriptForbiddenScope_h
8 #include "platform/PlatformExport.h"
9 #include "wtf/Assertions.h"
10 #include "wtf/TemporaryChange.h"
14 class PLATFORM_EXPORT ScriptForbiddenScope {
16 ScriptForbiddenScope();
17 ~ScriptForbiddenScope();
19 class PLATFORM_EXPORT AllowUserAgentScript {
21 AllowUserAgentScript();
22 ~AllowUserAgentScript();
24 TemporaryChange<unsigned> m_change;
29 static bool isScriptForbidden();
34 #endif // ScriptForbiddenScope_h