background_throttling_source.h 532 B

123456789101112131415161718
  1. // Copyright 2023 OpenFin. All rights reserved.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_BROWSER_BACKGROUND_THROTTLING_SOURCE
  5. #define ELECTRON_SHELL_BROWSER_BACKGROUND_THROTTLING_SOURCE
  6. namespace electron {
  7. class BackgroundThrottlingSource {
  8. public:
  9. virtual ~BackgroundThrottlingSource() = default;
  10. virtual bool GetBackgroundThrottling() const = 0;
  11. };
  12. } // namespace electron
  13. #endif // ELECTRON_SHELL_BROWSER_BACKGROUND_THROTTLING_SOURCE