Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: content/renderer/render_frame_impl.h

Issue 2735183003: PlzNavigate: stop navigations when opening a document for write (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 9f6f3f03cab52a4546b40c22b135db27ab43b796..52599138058e2bb379e2307a1986f6dde0a9bb40 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -593,6 +593,7 @@ class CONTENT_EXPORT RenderFrameImpl
void didChangeThemeColor() override;
void dispatchLoad() override;
blink::WebEffectiveConnectionType getEffectiveConnectionType() override;
+ void abortClientNavigation() override;
void didChangeSelection(bool is_empty_selection) override;
bool handleCurrentKeyboardEvent() override;
blink::WebColorChooser* createColorChooser(
@@ -901,6 +902,7 @@ class CONTENT_EXPORT RenderFrameImpl
int error_code);
void OnReportContentSecurityPolicyViolation(
const content::CSPViolationParams& violation_params);
+ void OnDroppedNavigation(int navigation_id);
void OnGetSavableResourceLinks();
void OnGetSerializedHtmlWithLocalLinks(
const std::map<GURL, base::FilePath>& url_to_local_path,
@@ -1429,6 +1431,10 @@ class CONTENT_EXPORT RenderFrameImpl
// is used and released in didStartProvisionalLoad().
std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
+ // PlzNavigate
+ // An id to identify the last navigation sent to the browser.
+ int navigation_id_ = 0;
+
base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);

Powered by Google App Engine
This is Rietveld 408576698