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

Side by Side Diff: Source/core/dom/ActiveDOMObject.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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/core/css/WebKitCSSViewportRule.cpp ('k') | Source/core/dom/ActiveDOMObject.cpp » ('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 * 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 m_pendingActivityCount++; 69 m_pendingActivityCount++;
70 } 70 }
71 71
72 template<class T> void unsetPendingActivity(T* thisObject) 72 template<class T> void unsetPendingActivity(T* thisObject)
73 { 73 {
74 ASSERT(m_pendingActivityCount > 0); 74 ASSERT(m_pendingActivityCount > 0);
75 --m_pendingActivityCount; 75 --m_pendingActivityCount;
76 thisObject->deref(); 76 thisObject->deref();
77 } 77 }
78 78
79 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
80
81 protected: 79 protected:
82 virtual ~ActiveDOMObject(); 80 virtual ~ActiveDOMObject();
83 81
84 private: 82 private:
85 unsigned m_pendingActivityCount; 83 unsigned m_pendingActivityCount;
86 #if !ASSERT_DISABLED 84 #if !ASSERT_DISABLED
87 bool m_suspendIfNeededCalled; 85 bool m_suspendIfNeededCalled;
88 #endif 86 #endif
89 }; 87 };
90 88
91 } // namespace WebCore 89 } // namespace WebCore
92 90
93 #endif // ActiveDOMObject_h 91 #endif // ActiveDOMObject_h
OLDNEW
« no previous file with comments | « Source/core/css/WebKitCSSViewportRule.cpp ('k') | Source/core/dom/ActiveDOMObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698