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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InstanceCounters.h

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InstanceCounters_h 31 #ifndef InstanceCounters_h
32 #define InstanceCounters_h 32 #define InstanceCounters_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "wtf/Allocator.h" 35 #include "wtf/Allocator.h"
36 36
37 #if ENABLE(ASSERT) 37 #if ENABLE(ASSERT)
38 #include "wtf/MainThread.h"
39 #endif 38 #endif
40 39
41 namespace blink { 40 namespace blink {
42 41
43 class InstanceCounters { 42 class InstanceCounters {
44 STATIC_ONLY(InstanceCounters); 43 STATIC_ONLY(InstanceCounters);
45 public: 44 public:
46 enum CounterType { 45 enum CounterType {
47 ActiveDOMObjectCounter, 46 ActiveDOMObjectCounter,
48 AudioHandlerCounter, 47 AudioHandlerCounter,
(...skipping 24 matching lines...) Expand all
73 72
74 CORE_EXPORT static int counterValue(CounterType); 73 CORE_EXPORT static int counterValue(CounterType);
75 74
76 private: 75 private:
77 CORE_EXPORT static int s_counters[CounterTypeLength]; 76 CORE_EXPORT static int s_counters[CounterTypeLength];
78 }; 77 };
79 78
80 } // namespace blink 79 } // namespace blink
81 80
82 #endif // !defined(InstanceCounters_h) 81 #endif // !defined(InstanceCounters_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698