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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. Created 4 years, 2 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 namespace blink { 65 namespace blink {
66 namespace mojom { 66 namespace mojom {
67 class WebBluetoothService; 67 class WebBluetoothService;
68 } 68 }
69 } 69 }
70 70
71 namespace content { 71 namespace content {
72 72
73 class AssociatedInterfaceProviderImpl; 73 class AssociatedInterfaceProviderImpl;
74 class CrossProcessFrameConnector; 74 class CrossProcessFrameConnector;
75 class CrossSiteTransferringRequest;
75 class FrameTree; 76 class FrameTree;
76 class FrameTreeNode; 77 class FrameTreeNode;
77 class NavigationHandleImpl; 78 class NavigationHandleImpl;
78 class PermissionServiceContext; 79 class PermissionServiceContext;
79 class RenderFrameHostDelegate; 80 class RenderFrameHostDelegate;
80 class RenderFrameProxyHost; 81 class RenderFrameProxyHost;
81 class RenderProcessHost; 82 class RenderProcessHost;
82 class RenderViewHostImpl; 83 class RenderViewHostImpl;
83 class RenderWidgetHostDelegate; 84 class RenderWidgetHostDelegate;
84 class RenderWidgetHostImpl; 85 class RenderWidgetHostImpl;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // RenderFrameHost. 334 // RenderFrameHost.
334 void SetNavigationHandle( 335 void SetNavigationHandle(
335 std::unique_ptr<NavigationHandleImpl> navigation_handle); 336 std::unique_ptr<NavigationHandleImpl> navigation_handle);
336 337
337 // Gives the ownership of |navigation_handle_| to the caller. 338 // Gives the ownership of |navigation_handle_| to the caller.
338 // This happens during transfer navigations, where it should be transferred 339 // This happens during transfer navigations, where it should be transferred
339 // from the RenderFrameHost that issued the initial request to the new 340 // from the RenderFrameHost that issued the initial request to the new
340 // RenderFrameHost that will issue the transferring request. 341 // RenderFrameHost that will issue the transferring request.
341 std::unique_ptr<NavigationHandleImpl> PassNavigationHandleOwnership(); 342 std::unique_ptr<NavigationHandleImpl> PassNavigationHandleOwnership();
342 343
344 // Called on the pending RenderFrameHost when the network response is ready to
345 // commit. We should ensure that the old RenderFrameHost runs its unload
346 // handler and determine whether a transfer to a different RenderFrameHost is
347 // needed.
348 void OnCrossSiteResponse(const GlobalRequestID& global_request_id,
349 std::unique_ptr<CrossSiteTransferringRequest>
350 cross_site_transferring_request,
351 const std::vector<GURL>& transfer_url_chain,
352 const Referrer& referrer,
353 ui::PageTransition page_transition,
354 bool should_replace_current_entry);
355
343 // Tells the renderer that this RenderFrame is being swapped out for one in a 356 // Tells the renderer that this RenderFrame is being swapped out for one in a
344 // different renderer process. It should run its unload handler and move to 357 // different renderer process. It should run its unload handler and move to
345 // a blank document. If |proxy| is not null, it should also create a 358 // a blank document. If |proxy| is not null, it should also create a
346 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading| 359 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading|
347 // state. The renderer should preserve the RenderFrameProxy object until it 360 // state. The renderer should preserve the RenderFrameProxy object until it
348 // exits, in case we come back. The renderer can exit if it has no other 361 // exits, in case we come back. The renderer can exit if it has no other
349 // active RenderFrames, but not until WasSwappedOut is called. 362 // active RenderFrames, but not until WasSwappedOut is called.
350 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading); 363 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading);
351 364
352 // Whether an ongoing navigation is waiting for a BeforeUnload ACK from the 365 // Whether an ongoing navigation is waiting for a BeforeUnload ACK from the
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1059
1047 // NOTE: This must be the last member. 1060 // NOTE: This must be the last member.
1048 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1061 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1049 1062
1050 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1063 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1051 }; 1064 };
1052 1065
1053 } // namespace content 1066 } // namespace content
1054 1067
1055 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1068 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698