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

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 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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 blink::WebHistoryCommitType commit_type, 709 blink::WebHistoryCommitType commit_type,
710 const blink::WebHistoryItem& item); 710 const blink::WebHistoryItem& item);
711 711
712 // IPC message handlers ------------------------------------------------------ 712 // IPC message handlers ------------------------------------------------------
713 // 713 //
714 // The documentation for these functions should be in 714 // The documentation for these functions should be in
715 // content/common/*_messages.h for the message that the function is handling. 715 // content/common/*_messages.h for the message that the function is handling.
716 void OnNavigate(const CommonNavigationParams& common_params, 716 void OnNavigate(const CommonNavigationParams& common_params,
717 const StartNavigationParams& start_params, 717 const StartNavigationParams& start_params,
718 const RequestNavigationParams& request_params); 718 const RequestNavigationParams& request_params);
719 void OnBeforeUnload(); 719 void OnBeforeUnload(bool is_reload);
720 void OnSwapOut(int proxy_routing_id, 720 void OnSwapOut(int proxy_routing_id,
721 bool is_loading, 721 bool is_loading,
722 const FrameReplicationState& replicated_frame_state); 722 const FrameReplicationState& replicated_frame_state);
723 void OnDeleteFrame(); 723 void OnDeleteFrame();
724 void OnStop(); 724 void OnStop();
725 void OnShowContextMenu(const gfx::Point& location); 725 void OnShowContextMenu(const gfx::Point& location);
726 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 726 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
727 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 727 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
728 unsigned action); 728 unsigned action);
729 void OnUndo(); 729 void OnUndo();
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 FrameBlameContext* blame_context_; // Not owned. 1205 FrameBlameContext* blame_context_; // Not owned.
1206 1206
1207 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1207 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1208 1208
1209 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1209 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1210 }; 1210 };
1211 1211
1212 } // namespace content 1212 } // namespace content
1213 1213
1214 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1214 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698