OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 class WebLeakDetector { | 49 class WebLeakDetector { |
50 public: | 50 public: |
51 virtual ~WebLeakDetector() { } | 51 virtual ~WebLeakDetector() { } |
52 | 52 |
53 BLINK_EXPORT static WebLeakDetector* create(WebLeakDetectorClient*); | 53 BLINK_EXPORT static WebLeakDetector* create(WebLeakDetectorClient*); |
54 | 54 |
55 // Cleans up the DOM objects and counts them. |WebLeakDetectorClient::onLeak
DetectionComplete()| is called when done. | 55 // Cleans up the DOM objects and counts them. |WebLeakDetectorClient::onLeak
DetectionComplete()| is called when done. |
56 // This is supposed to be used for detecting DOM-object leaks. | 56 // This is supposed to be used for detecting DOM-object leaks. |
57 virtual void collectGarbageAndGetDOMCounts(WebLocalFrame*) = 0; | 57 virtual void collectGarbageAndGetDOMCounts(WebLocalFrame*) = 0; |
58 | |
59 // FIXME: old API to be removed. | |
60 static void collectGarbargeAndGetDOMCounts(WebLocalFrame*, unsigned*, unsign
ed*) { } | |
61 }; | 58 }; |
62 | 59 |
63 } // namespace blink | 60 } // namespace blink |
64 | 61 |
65 #endif // WebLeakDetector_h | 62 #endif // WebLeakDetector_h |
OLD | NEW |