| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // | 72 // |
| 73 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called | 73 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called |
| 74 // with the result of the (leaked) resource counting. | 74 // with the result of the (leaked) resource counting. |
| 75 // | 75 // |
| 76 // By separating into two, the caller is able to inject any | 76 // By separating into two, the caller is able to inject any |
| 77 // additional releasing of resources needed before the garbage | 77 // additional releasing of resources needed before the garbage |
| 78 // collections go ahead. | 78 // collections go ahead. |
| 79 | 79 |
| 80 // Perform initial stage of preparing for leak detection, | 80 // Perform initial stage of preparing for leak detection, |
| 81 // releasing references to resources held globally. | 81 // releasing references to resources held globally. |
| 82 virtual void prepareForLeakDetection(WebLocalFrame*) = 0; | 82 virtual void prepareForLeakDetection() = 0; |
| 83 | 83 |
| 84 // Garbage collect Blink's heaps and report leak counts. | 84 // Garbage collect Blink's heaps and report leak counts. |
| 85 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called | 85 // |WebLeakDetectorClient::onLeakDetectionComplete()| is called |
| 86 // upon completion. | 86 // upon completion. |
| 87 virtual void collectGarbageAndReport() = 0; | 87 virtual void collectGarbageAndReport() = 0; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // WebLeakDetector_h | 92 #endif // WebLeakDetector_h |
| OLD | NEW |