2014-06-30 15:39:45 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-12-15 19:48:38 +00:00
|
|
|
|
|
|
|
#ifndef mozilla_AvailableMemoryTracker_h
|
|
|
|
#define mozilla_AvailableMemoryTracker_h
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace AvailableMemoryTracker {
|
|
|
|
|
2012-11-12 16:41:23 +00:00
|
|
|
// The AvailableMemoryTracker launches a memory pressure watcher on all
|
|
|
|
// platforms to react to low-memory situations and on Windows it implements
|
|
|
|
// the full functionality used to monitor how much memory is available.
|
2012-04-09 17:53:08 +00:00
|
|
|
//
|
2018-07-04 19:06:07 +00:00
|
|
|
// Init() requires the observer service to be already available so cannot be
|
|
|
|
// called too early during initialization.
|
2011-12-15 19:48:38 +00:00
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
} // namespace AvailableMemoryTracker
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // ifndef mozilla_AvailableMemoryTracker_h
|