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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1890493002: PlzNavigate: properly execute BeforeUnload on renderer initiated navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dcheng's comments Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 blink::WebHistoryCommitType commit_type, 714 blink::WebHistoryCommitType commit_type,
715 const blink::WebHistoryItem& item); 715 const blink::WebHistoryItem& item);
716 716
717 // IPC message handlers ------------------------------------------------------ 717 // IPC message handlers ------------------------------------------------------
718 // 718 //
719 // The documentation for these functions should be in 719 // The documentation for these functions should be in
720 // content/common/*_messages.h for the message that the function is handling. 720 // content/common/*_messages.h for the message that the function is handling.
721 void OnNavigate(const CommonNavigationParams& common_params, 721 void OnNavigate(const CommonNavigationParams& common_params,
722 const StartNavigationParams& start_params, 722 const StartNavigationParams& start_params,
723 const RequestNavigationParams& request_params); 723 const RequestNavigationParams& request_params);
724 void OnBeforeUnload(); 724 void OnBeforeUnload(bool is_reload);
725 void OnSwapOut(int proxy_routing_id, 725 void OnSwapOut(int proxy_routing_id,
726 bool is_loading, 726 bool is_loading,
727 const FrameReplicationState& replicated_frame_state); 727 const FrameReplicationState& replicated_frame_state);
728 void OnDeleteFrame(); 728 void OnDeleteFrame();
729 void OnStop(); 729 void OnStop();
730 void OnShowContextMenu(const gfx::Point& location); 730 void OnShowContextMenu(const gfx::Point& location);
731 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 731 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
732 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 732 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
733 unsigned action); 733 unsigned action);
734 void OnUndo(); 734 void OnUndo();
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 FrameBlameContext* blame_context_; // Not owned. 1215 FrameBlameContext* blame_context_; // Not owned.
1216 1216
1217 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1217 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1218 1218
1219 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1219 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1220 }; 1220 };
1221 1221
1222 } // namespace content 1222 } // namespace content
1223 1223
1224 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1224 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698