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

Side by Side Diff: Source/platform/ScriptForbiddenScope.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 ScriptForbiddenScope_h 5 #ifndef ScriptForbiddenScope_h
6 #define ScriptForbiddenScope_h 6 #define ScriptForbiddenScope_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 #include "wtf/TemporaryChange.h" 10 #include "wtf/TemporaryChange.h"
11 11
12 namespace WebCore { 12 namespace WebCore {
13 13
14 #if ASSERT_ENABLED 14 #if ENABLE(ASSERT)
15 15
16 class PLATFORM_EXPORT ScriptForbiddenScope { 16 class PLATFORM_EXPORT ScriptForbiddenScope {
17 public: 17 public:
18 ScriptForbiddenScope(); 18 ScriptForbiddenScope();
19 ~ScriptForbiddenScope(); 19 ~ScriptForbiddenScope();
20 20
21 class PLATFORM_EXPORT AllowUserAgentScript { 21 class PLATFORM_EXPORT AllowUserAgentScript {
22 public: 22 public:
23 AllowUserAgentScript(); 23 AllowUserAgentScript();
24 ~AllowUserAgentScript(); 24 ~AllowUserAgentScript();
(...skipping 14 matching lines...) Expand all
39 AllowUserAgentScript() { } 39 AllowUserAgentScript() { }
40 }; 40 };
41 static bool isScriptForbidden() { return false; } 41 static bool isScriptForbidden() { return false; }
42 }; 42 };
43 43
44 #endif 44 #endif
45 45
46 } // namespace WebCore 46 } // namespace WebCore
47 47
48 #endif // ScriptForbiddenScope_h 48 #endif // ScriptForbiddenScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698