// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_BACK_FORWARD_CACHE_H_ #define CONTENT_PUBLIC_BROWSER_BACK_FORWARD_CACHE_H_ #include <cstdint> #include <map> #include <optional> #include <set> #include "content/common/content_export.h" #include "content/public/browser/global_routing_id.h" #include "services/metrics/public/cpp/ukm_source_id.h" namespace content { class Page; class RenderFrameHost; // Public API for the BackForwardCache. // // After the user navigates away from a document, the old one might go into the // frozen state and will be kept in the cache. It can potentially be reused // at a later time if the user navigates back. // // Not all documents can or will be cached. You should not assume a document // will be cached. // // All methods of this class should be called from the UI thread. class CONTENT_EXPORT BackForwardCache { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_BACK_FORWARD_CACHE_H_