features.h 694 B

12345678910111213141516171819
  1. // Copyright 2021 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. #ifndef COMPONENTS_WEB_CACHE_PUBLIC_FEATURES_H_
  5. #define COMPONENTS_WEB_CACHE_PUBLIC_FEATURES_H_
  6. #include "base/feature_list.h"
  7. namespace web_cache {
  8. // Disable the logic that try to coordinate the in-memory cache resource usage
  9. // of all renderers and simply trim the caches on memory pressure. Renderers
  10. // get a memory pressure signal a few minutes after they've been backgrounded.
  11. extern const base::Feature kTrimWebCacheOnMemoryPressureOnly;
  12. } // namespace web_cache
  13. #endif // COMPONENTS_WEB_CACHE_PUBLIC_FEATURES_H_