Commit 7ae8393b authored by Fergal Daly's avatar Fergal Daly Committed by Commit Bot

Move IsRenderDocumentEnabledForCrashedFrame under content/browser.

This is not public and not shared with the renderer.

Bug: 981339
Change-Id: Iad7201c371135027280c814326e154cb10858f4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035815Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738792}
parent b15cf45b
...@@ -562,6 +562,10 @@ const uint32_t kMaxCookieSameSiteDeprecationUrls = 20; ...@@ -562,6 +562,10 @@ const uint32_t kMaxCookieSameSiteDeprecationUrls = 20;
} // namespace } // namespace
bool IsRenderDocumentEnabledForCrashedFrame() {
return base::FeatureList::IsEnabled(features::kRenderDocumentForCrashedFrame);
}
class RenderFrameHostImpl::DroppedInterfaceRequestLogger class RenderFrameHostImpl::DroppedInterfaceRequestLogger
: public blink::mojom::BrowserInterfaceBroker { : public blink::mojom::BrowserInterfaceBroker {
public: public:
......
...@@ -208,6 +208,10 @@ struct PendingNavigation; ...@@ -208,6 +208,10 @@ struct PendingNavigation;
struct ResourceTimingInfo; struct ResourceTimingInfo;
struct SubresourceLoaderParams; struct SubresourceLoaderParams;
// True if feature-flags indicate that we should replace crashed RFHs with new
// instances rather than reusing them. See http://crbug.com/981339.
CONTENT_EXPORT bool IsRenderDocumentEnabledForCrashedFrame();
// To be called when a RenderFrameHostImpl receives an event. // To be called when a RenderFrameHostImpl receives an event.
// Provides the host, the event fired, and which node id the event was for. // Provides the host, the event fired, and which node id the event was for.
typedef base::RepeatingCallback< typedef base::RepeatingCallback<
......
...@@ -26,10 +26,6 @@ void LogArbitraryPolicyPerDownload(NavigationDownloadType type) { ...@@ -26,10 +26,6 @@ void LogArbitraryPolicyPerDownload(NavigationDownloadType type) {
} }
} // namespace } // namespace
bool IsRenderDocumentEnabledForCrashedFrame() {
return base::FeatureList::IsEnabled(features::kRenderDocumentForCrashedFrame);
}
NavigationDownloadPolicy::NavigationDownloadPolicy() = default; NavigationDownloadPolicy::NavigationDownloadPolicy() = default;
NavigationDownloadPolicy::~NavigationDownloadPolicy() = default; NavigationDownloadPolicy::~NavigationDownloadPolicy() = default;
NavigationDownloadPolicy::NavigationDownloadPolicy( NavigationDownloadPolicy::NavigationDownloadPolicy(
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
// navigations. // navigations.
namespace content { namespace content {
CONTENT_EXPORT bool IsRenderDocumentEnabledForCrashedFrame();
// Navigation type that affects the download decision and relevant metrics to be // Navigation type that affects the download decision and relevant metrics to be
// reported at download-discovery time. // reported at download-discovery time.
// //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment