Propogate loading behavior data from Blink to content/
This patch adds an enum describing various loading metadata.
These bits are set when the Document hits various codepaths,
e.g. new loading features. The metadata is then propagated
into content/ for use by content consumers. The primary use
case for this new API is to aid in metrics collection.
This is part 1 of a 2 part patch set where the
page_load_metrics system will use the metadata to separate
separate histograms in the browser process.
The second patch can be found here:
https://codereview.chromium.org/1857443002/
BUG=594159
Review URL: https://codereview.chromium.org/1846143003
Cr-Commit-Position: refs/heads/master@{#386365}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 62540fd6..ef20608a 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -40,6 +40,7 @@
#include "mojo/shell/public/interfaces/connector.mojom.h"
#include "mojo/shell/public/interfaces/interface_provider.mojom.h"
#include "third_party/WebKit/public/platform/WebFocusType.h"
+#include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
#include "third_party/WebKit/public/platform/WebMediaPlayer.h"
#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClient.h"
#include "third_party/WebKit/public/web/WebAXObject.h"
@@ -556,6 +557,8 @@
const blink::WebURL& main_resource_url,
const blink::WebCString& main_resource_security_info) override;
void didChangePerformanceTiming() override;
+ void didObserveLoadingBehavior(
+ blink::WebLoadingBehaviorFlag behavior) override;
void didCreateScriptContext(blink::WebLocalFrame* frame,
v8::Local<v8::Context> context,
int extension_group,