back_forward_cache_disable.h 788 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_BACK_FORWARD_CACHE_BACK_FORWARD_CACHE_DISABLE_H_
  5. #define COMPONENTS_BACK_FORWARD_CACHE_BACK_FORWARD_CACHE_DISABLE_H_
  6. #include "components/back_forward_cache/disabled_reason_id.h"
  7. #include "content/public/browser/back_forward_cache.h"
  8. #include "content/public/browser/global_routing_id.h"
  9. namespace back_forward_cache {
  10. // Constructs a chrome-specific DisabledReason
  11. content::BackForwardCache::DisabledReason DisabledReason(
  12. DisabledReasonId reason_id,
  13. const std::string& context = "");
  14. } // namespace back_forward_cache
  15. #endif // COMPONENTS_BACK_FORWARD_CACHE_BACK_FORWARD_CACHE_DISABLE_H_