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

Side by Side Diff: third_party/WebKit/Source/platform/InstanceCounters.h

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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 24 matching lines...) Expand all
35 #include "wtf/Allocator.h" 35 #include "wtf/Allocator.h"
36 #include "wtf/Atomics.h" 36 #include "wtf/Atomics.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class InstanceCounters { 40 class InstanceCounters {
41 STATIC_ONLY(InstanceCounters); 41 STATIC_ONLY(InstanceCounters);
42 42
43 public: 43 public:
44 enum CounterType { 44 enum CounterType {
45 ActiveDOMObjectCounter, 45 SuspendableObjectCounter,
46 AudioHandlerCounter, 46 AudioHandlerCounter,
47 DocumentCounter, 47 DocumentCounter,
48 FrameCounter, 48 FrameCounter,
49 JSEventListenerCounter, 49 JSEventListenerCounter,
50 LayoutObjectCounter, 50 LayoutObjectCounter,
51 NodeCounter, 51 NodeCounter,
52 ResourceCounter, 52 ResourceCounter,
53 ScriptPromiseCounter, 53 ScriptPromiseCounter,
54 V8PerContextDataCounter, 54 V8PerContextDataCounter,
55 WorkerGlobalScopeCounter, 55 WorkerGlobalScopeCounter,
(...skipping 25 matching lines...) Expand all
81 PLATFORM_EXPORT static int counterValue(CounterType); 81 PLATFORM_EXPORT static int counterValue(CounterType);
82 82
83 private: 83 private:
84 PLATFORM_EXPORT static int s_counters[CounterTypeLength]; 84 PLATFORM_EXPORT static int s_counters[CounterTypeLength];
85 PLATFORM_EXPORT static int s_nodeCounter; 85 PLATFORM_EXPORT static int s_nodeCounter;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // !defined(InstanceCounters_h) 90 #endif // !defined(InstanceCounters_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698