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