Bug 1867190 - Add prefs for PHC probablities r=glandium
[gecko.git] / xpcom / base / AvailableMemoryTracker.h
blob3d2a048cb3184b2daea4fd23b2cf1e06bfcc60d9
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_AvailableMemoryTracker_h
8 #define mozilla_AvailableMemoryTracker_h
10 namespace mozilla {
11 namespace AvailableMemoryTracker {
13 // The AvailableMemoryTracker launches a memory pressure watcher on all
14 // platforms to react to low-memory situations and on Windows it implements
15 // the full functionality used to monitor how much memory is available.
17 // Init() requires the observer service to be already available so cannot be
18 // called too early during initialization.
20 void Init();
22 } // namespace AvailableMemoryTracker
23 } // namespace mozilla
25 #endif // ifndef mozilla_AvailableMemoryTracker_h