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

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 171d03f3c80d5c240b175dc25c259bcba1374631..9dd4557e1f444100d900bc55f3b3308ec8334972 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -590,6 +590,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(
@@ -896,6 +897,7 @@ class CONTENT_EXPORT RenderFrameImpl
const RequestNavigationParams& request_params,
bool has_stale_copy_in_cache,
int error_code);
+ void OnDroppedNavigation(int navigation_id);
void OnGetSavableResourceLinks();
void OnGetSerializedHtmlWithLocalLinks(
const std::map<GURL, base::FilePath>& url_to_local_path,
@@ -1424,6 +1426,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;
nasko 2017/03/16 21:23:14 I'd like to hear what Charlie thinks about this ap
clamy 2017/03/17 15:19:11 TBH I'm not super happy about introducing an id, b
+
base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);

Powered by Google App Engine
This is Rietveld 408576698