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

Side by Side Diff: Source/wtf/RefCountedLeakCounter.cpp

Issue 835953003: Fix template angle bracket syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « Source/wtf/PassTraits.h ('k') | Source/wtf/RefVector.h » ('j') | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 27 matching lines...) Expand all
38 RefCountedLeakCounter::~RefCountedLeakCounter() { } 38 RefCountedLeakCounter::~RefCountedLeakCounter() { }
39 39
40 void RefCountedLeakCounter::increment() { } 40 void RefCountedLeakCounter::increment() { }
41 void RefCountedLeakCounter::decrement() { } 41 void RefCountedLeakCounter::decrement() { }
42 42
43 #else 43 #else
44 44
45 #define LOG_CHANNEL_PREFIX Log 45 #define LOG_CHANNEL_PREFIX Log
46 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelOn }; 46 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelOn };
47 47
48 typedef HashCountedSet<const char*, PtrHash<const char*> > ReasonSet; 48 typedef HashCountedSet<const char*, PtrHash<const char*>> ReasonSet;
49 static ReasonSet* leakMessageSuppressionReasons; 49 static ReasonSet* leakMessageSuppressionReasons;
50 50
51 void RefCountedLeakCounter::suppressMessages(const char* reason) 51 void RefCountedLeakCounter::suppressMessages(const char* reason)
52 { 52 {
53 if (!leakMessageSuppressionReasons) 53 if (!leakMessageSuppressionReasons)
54 leakMessageSuppressionReasons = new ReasonSet; 54 leakMessageSuppressionReasons = new ReasonSet;
55 leakMessageSuppressionReasons->add(reason); 55 leakMessageSuppressionReasons->add(reason);
56 } 56 }
57 57
58 void RefCountedLeakCounter::cancelMessageSuppression(const char* reason) 58 void RefCountedLeakCounter::cancelMessageSuppression(const char* reason)
(...skipping 28 matching lines...) Expand all
87 } 87 }
88 88
89 void RefCountedLeakCounter::decrement() 89 void RefCountedLeakCounter::decrement()
90 { 90 {
91 atomicDecrement(&m_count); 91 atomicDecrement(&m_count);
92 } 92 }
93 93
94 #endif 94 #endif
95 95
96 } // namespace WTF 96 } // namespace WTF
OLDNEW
« no previous file with comments | « Source/wtf/PassTraits.h ('k') | Source/wtf/RefVector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698