| OLD | NEW |
| 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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "content/browser/frame_host/navigation_controller_impl.h" | 13 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 14 #include "content/browser/frame_host/navigator.h" | 14 #include "content/browser/frame_host/navigator.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
| 17 #include "content/public/common/previews_state.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 | 19 |
| 19 class GURL; | 20 class GURL; |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 | 23 |
| 23 class NavigationControllerImpl; | 24 class NavigationControllerImpl; |
| 24 class NavigatorDelegate; | 25 class NavigatorDelegate; |
| 25 class ResourceRequestBodyImpl; | 26 class ResourceRequestBodyImpl; |
| 26 struct LoadCommittedDetails; | 27 struct LoadCommittedDetails; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 121 |
| 121 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it | 122 // PlzNavigate: if needed, sends a BeforeUnload IPC to the renderer to ask it |
| 122 // to execute the beforeUnload event. Otherwise, the navigation request will | 123 // to execute the beforeUnload event. Otherwise, the navigation request will |
| 123 // be started. | 124 // be started. |
| 124 void RequestNavigation(FrameTreeNode* frame_tree_node, | 125 void RequestNavigation(FrameTreeNode* frame_tree_node, |
| 125 const GURL& dest_url, | 126 const GURL& dest_url, |
| 126 const Referrer& dest_referrer, | 127 const Referrer& dest_referrer, |
| 127 const FrameNavigationEntry& frame_entry, | 128 const FrameNavigationEntry& frame_entry, |
| 128 const NavigationEntryImpl& entry, | 129 const NavigationEntryImpl& entry, |
| 129 ReloadType reload_type, | 130 ReloadType reload_type, |
| 130 LoFiState lofi_state, | 131 PreviewsState previews_state, |
| 131 bool is_same_document_history_load, | 132 bool is_same_document_history_load, |
| 132 bool is_history_navigation_in_new_child, | 133 bool is_history_navigation_in_new_child, |
| 133 base::TimeTicks navigation_start); | 134 base::TimeTicks navigation_start); |
| 134 | 135 |
| 135 void RecordNavigationMetrics( | 136 void RecordNavigationMetrics( |
| 136 const LoadCommittedDetails& details, | 137 const LoadCommittedDetails& details, |
| 137 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 138 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 138 SiteInstance* site_instance); | 139 SiteInstance* site_instance); |
| 139 | 140 |
| 140 // Called when a navigation has started in a main frame, to update the pending | 141 // Called when a navigation has started in a main frame, to update the pending |
| (...skipping 14 matching lines...) Expand all Loading... |
| 155 NavigatorDelegate* delegate_; | 156 NavigatorDelegate* delegate_; |
| 156 | 157 |
| 157 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; | 158 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 160 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace content | 163 } // namespace content |
| 163 | 164 |
| 164 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 165 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
| OLD | NEW |