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

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

Issue 1422333009: OOPIF: History navigations for new child frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve comment. Created 5 years 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
« no previous file with comments | « content/browser/frame_host/navigator.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 int error_code, 49 int error_code,
50 const base::string16& error_description, 50 const base::string16& error_description,
51 bool was_ignored_by_handler) override; 51 bool was_ignored_by_handler) override;
52 void DidNavigate( 52 void DidNavigate(
53 RenderFrameHostImpl* render_frame_host, 53 RenderFrameHostImpl* render_frame_host,
54 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; 54 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override;
55 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node, 55 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node,
56 const FrameNavigationEntry& frame_entry, 56 const FrameNavigationEntry& frame_entry,
57 NavigationController::ReloadType reload_type, 57 NavigationController::ReloadType reload_type,
58 bool is_same_document_history_load) override; 58 bool is_same_document_history_load) override;
59 bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host,
60 const std::string& unique_name) override;
59 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 61 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
60 const GURL& url, 62 const GURL& url,
61 SiteInstance* source_site_instance, 63 SiteInstance* source_site_instance,
62 const Referrer& referrer, 64 const Referrer& referrer,
63 WindowOpenDisposition disposition, 65 WindowOpenDisposition disposition,
64 bool should_replace_current_entry, 66 bool should_replace_current_entry,
65 bool user_gesture) override; 67 bool user_gesture) override;
66 void RequestTransferURL(RenderFrameHostImpl* render_frame_host, 68 void RequestTransferURL(RenderFrameHostImpl* render_frame_host,
67 const GURL& url, 69 const GURL& url,
68 SiteInstance* source_site_instance, 70 SiteInstance* source_site_instance,
(...skipping 22 matching lines...) Expand all
91 const base::TimeTicks& renderer_before_unload_end_time) override; 93 const base::TimeTicks& renderer_before_unload_end_time) override;
92 void CancelNavigation(FrameTreeNode* frame_tree_node) override; 94 void CancelNavigation(FrameTreeNode* frame_tree_node) override;
93 95
94 private: 96 private:
95 // Holds data used to track browser side navigation metrics. 97 // Holds data used to track browser side navigation metrics.
96 struct NavigationMetricsData; 98 struct NavigationMetricsData;
97 99
98 friend class NavigatorTestWithBrowserSideNavigation; 100 friend class NavigatorTestWithBrowserSideNavigation;
99 ~NavigatorImpl() override; 101 ~NavigatorImpl() override;
100 102
101 // Navigates to the given entry, which must be the pending entry. Private 103 // Navigates to the given entry, which might be the pending entry (if
102 // because all callers should use NavigateToPendingEntry. 104 // |is_pending_entry| is true). Private because all callers should use either
105 // NavigateToPendingEntry or NavigateToNewChildFrame.
103 bool NavigateToEntry(FrameTreeNode* frame_tree_node, 106 bool NavigateToEntry(FrameTreeNode* frame_tree_node,
104 const FrameNavigationEntry& frame_entry, 107 const FrameNavigationEntry& frame_entry,
105 const NavigationEntryImpl& entry, 108 const NavigationEntryImpl& entry,
106 NavigationController::ReloadType reload_type, 109 NavigationController::ReloadType reload_type,
107 bool is_same_document_history_load); 110 bool is_same_document_history_load,
111 bool is_pending_entry);
108 112
109 bool ShouldAssignSiteForURL(const GURL& url); 113 bool ShouldAssignSiteForURL(const GURL& url);
110 114
111 void CheckWebUIRendererDoesNotDisplayNormalURL( 115 void CheckWebUIRendererDoesNotDisplayNormalURL(
112 RenderFrameHostImpl* render_frame_host, 116 RenderFrameHostImpl* render_frame_host,
113 const GURL& url); 117 const GURL& url);
114 118
115 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it 119 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it
116 // to execute the beforeUnload event. Otherwise, the navigation request will 120 // to execute the beforeUnload event. Otherwise, the navigation request will
117 // be started. 121 // be started.
(...skipping 28 matching lines...) Expand all
146 NavigatorDelegate* delegate_; 150 NavigatorDelegate* delegate_;
147 151
148 scoped_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; 152 scoped_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_;
149 153
150 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 154 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
151 }; 155 };
152 156
153 } // namespace content 157 } // namespace content
154 158
155 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 159 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator.cc ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698