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

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

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 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_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 <memory> 8 #include <memory>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host, 52 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host,
53 const GURL& url, 53 const GURL& url,
54 int error_code, 54 int error_code,
55 const base::string16& error_description, 55 const base::string16& error_description,
56 bool was_ignored_by_handler) override; 56 bool was_ignored_by_handler) override;
57 void DidNavigate( 57 void DidNavigate(
58 RenderFrameHostImpl* render_frame_host, 58 RenderFrameHostImpl* render_frame_host,
59 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override; 59 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) override;
60 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node, 60 bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node,
61 const FrameNavigationEntry& frame_entry, 61 const FrameNavigationEntry& frame_entry,
62 NavigationController::ReloadType reload_type, 62 ReloadType reload_type,
63 bool is_same_document_history_load) override; 63 bool is_same_document_history_load) override;
64 bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, 64 bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host,
65 const std::string& unique_name) override; 65 const std::string& unique_name) override;
66 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 66 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
67 const GURL& url, 67 const GURL& url,
68 bool uses_post, 68 bool uses_post,
69 const scoped_refptr<ResourceRequestBodyImpl>& body, 69 const scoped_refptr<ResourceRequestBodyImpl>& body,
70 SiteInstance* source_site_instance, 70 SiteInstance* source_site_instance,
71 const Referrer& referrer, 71 const Referrer& referrer,
72 WindowOpenDisposition disposition, 72 WindowOpenDisposition disposition,
(...skipping 30 matching lines...) Expand all
103 103
104 friend class NavigatorTestWithBrowserSideNavigation; 104 friend class NavigatorTestWithBrowserSideNavigation;
105 ~NavigatorImpl() override; 105 ~NavigatorImpl() override;
106 106
107 // Navigates to the given entry, which might be the pending entry (if 107 // Navigates to the given entry, which might be the pending entry (if
108 // |is_pending_entry| is true). Private because all callers should use either 108 // |is_pending_entry| is true). Private because all callers should use either
109 // NavigateToPendingEntry or NavigateToNewChildFrame. 109 // NavigateToPendingEntry or NavigateToNewChildFrame.
110 bool NavigateToEntry(FrameTreeNode* frame_tree_node, 110 bool NavigateToEntry(FrameTreeNode* frame_tree_node,
111 const FrameNavigationEntry& frame_entry, 111 const FrameNavigationEntry& frame_entry,
112 const NavigationEntryImpl& entry, 112 const NavigationEntryImpl& entry,
113 NavigationController::ReloadType reload_type, 113 ReloadType reload_type,
114 bool is_same_document_history_load, 114 bool is_same_document_history_load,
115 bool is_history_navigation_in_new_child, 115 bool is_history_navigation_in_new_child,
116 bool is_pending_entry, 116 bool is_pending_entry,
117 const scoped_refptr<ResourceRequestBodyImpl>& post_body); 117 const scoped_refptr<ResourceRequestBodyImpl>& post_body);
118 118
119 bool ShouldAssignSiteForURL(const GURL& url); 119 bool ShouldAssignSiteForURL(const GURL& url);
120 120
121 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it 121 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it
122 // to execute the beforeUnload event. Otherwise, the navigation request will 122 // to execute the beforeUnload event. Otherwise, the navigation request will
123 // be started. 123 // be started.
124 void RequestNavigation(FrameTreeNode* frame_tree_node, 124 void RequestNavigation(FrameTreeNode* frame_tree_node,
125 const GURL& dest_url, 125 const GURL& dest_url,
126 const Referrer& dest_referrer, 126 const Referrer& dest_referrer,
127 const FrameNavigationEntry& frame_entry, 127 const FrameNavigationEntry& frame_entry,
128 const NavigationEntryImpl& entry, 128 const NavigationEntryImpl& entry,
129 NavigationController::ReloadType reload_type, 129 ReloadType reload_type,
130 LoFiState lofi_state, 130 LoFiState lofi_state,
131 bool is_same_document_history_load, 131 bool is_same_document_history_load,
132 bool is_history_navigation_in_new_child, 132 bool is_history_navigation_in_new_child,
133 base::TimeTicks navigation_start); 133 base::TimeTicks navigation_start);
134 134
135 void RecordNavigationMetrics( 135 void RecordNavigationMetrics(
136 const LoadCommittedDetails& details, 136 const LoadCommittedDetails& details,
137 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, 137 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
138 SiteInstance* site_instance); 138 SiteInstance* site_instance);
139 139
(...skipping 19 matching lines...) Expand all
159 NavigatorDelegate* delegate_; 159 NavigatorDelegate* delegate_;
160 160
161 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; 161 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 163 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
164 }; 164 };
165 165
166 } // namespace content 166 } // namespace content
167 167
168 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 168 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_delegate.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698