OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_H_ |
| 6 #define COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_H_ |
| 7 |
| 8 namespace leak_detector { |
| 9 |
| 10 // The top level leak detector is a singleton instance. Implement it as a |
| 11 // namespace with init/shutdown functions rather than as a class with static |
| 12 // member functions. |
| 13 |
| 14 void Initialize(); |
| 15 void Shutdown(); |
| 16 |
| 17 bool IsInitialized(); |
| 18 |
| 19 } // namespace leak_detector |
| 20 |
| 21 #endif // COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_DETECTOR_H_ |
OLD | NEW |