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

Side by Side Diff: public/web/WebScopedMicrotaskSuppression.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. 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
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // 56 //
57 class WebScopedMicrotaskSuppression { 57 class WebScopedMicrotaskSuppression {
58 public: 58 public:
59 WebScopedMicrotaskSuppression() { initialize(); } 59 WebScopedMicrotaskSuppression() { initialize(); }
60 ~WebScopedMicrotaskSuppression() { reset(); } 60 ~WebScopedMicrotaskSuppression() { reset(); }
61 61
62 private: 62 private:
63 BLINK_EXPORT void initialize(); 63 BLINK_EXPORT void initialize();
64 BLINK_EXPORT void reset(); 64 BLINK_EXPORT void reset();
65 65
66 #ifndef NDEBUG 66 // Always declare this data member. When assertions are on in
67 // Release builds of Blink, this header may be included from
68 // Chromium with different preprocessor options than used when
69 // building Blink itself.
67 class Impl; 70 class Impl;
68 WebPrivateOwnPtr<Impl> m_impl; 71 WebPrivateOwnPtr<Impl> m_impl;
69 #endif
70 }; 72 };
71 73
72 } // WebKit 74 } // WebKit
73 75
74 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/wtf/text/StringImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698