OLD | NEW |
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 Loading... |
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 |
OLD | NEW |