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

Side by Side Diff: third_party/WebKit/public/web/WebLeakDetector.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 27 matching lines...) Expand all
38 class WebFrame; 38 class WebFrame;
39 39
40 class WebLeakDetectorClient { 40 class WebLeakDetectorClient {
41 public: 41 public:
42 struct Result { 42 struct Result {
43 unsigned numberOfLiveAudioNodes; 43 unsigned numberOfLiveAudioNodes;
44 unsigned numberOfLiveDocuments; 44 unsigned numberOfLiveDocuments;
45 unsigned numberOfLiveNodes; 45 unsigned numberOfLiveNodes;
46 unsigned numberOfLiveLayoutObjects; 46 unsigned numberOfLiveLayoutObjects;
47 unsigned numberOfLiveResources; 47 unsigned numberOfLiveResources;
48 unsigned numberOfLiveActiveDOMObjects; 48 unsigned numberOfLiveSuspendableObjects;
49 unsigned numberOfLiveScriptPromises; 49 unsigned numberOfLiveScriptPromises;
50 unsigned numberOfLiveFrames; 50 unsigned numberOfLiveFrames;
51 unsigned numberOfLiveV8PerContextData; 51 unsigned numberOfLiveV8PerContextData;
52 unsigned numberOfWorkerGlobalScopes; 52 unsigned numberOfWorkerGlobalScopes;
53 }; 53 };
54 54
55 virtual void onLeakDetectionComplete(const Result&) = 0; 55 virtual void onLeakDetectionComplete(const Result&) = 0;
56 }; 56 };
57 57
58 // |WebLeakDetector| detects leaks of various Blink objects, counting 58 // |WebLeakDetector| detects leaks of various Blink objects, counting
(...skipping 26 matching lines...) Expand all
85 85
86 // Garbage collect Blink's heaps and report leak counts. 86 // Garbage collect Blink's heaps and report leak counts.
87 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called 87 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called
88 // upon completion. 88 // upon completion.
89 virtual void collectGarbageAndReport() = 0; 89 virtual void collectGarbageAndReport() = 0;
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // WebLeakDetector_h 94 #endif // WebLeakDetector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698