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" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 ui::PageTransition page_transition, | 81 ui::PageTransition page_transition, |
82 const GlobalRequestID& transferred_global_request_id, | 82 const GlobalRequestID& transferred_global_request_id, |
83 bool should_replace_current_entry, | 83 bool should_replace_current_entry, |
84 const std::string& method, | 84 const std::string& method, |
85 scoped_refptr<ResourceRequestBodyImpl> post_body, | 85 scoped_refptr<ResourceRequestBodyImpl> post_body, |
86 const std::string& extra_headers) override; | 86 const std::string& extra_headers) override; |
87 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override; | 87 void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, bool proceed) override; |
88 void OnBeginNavigation(FrameTreeNode* frame_tree_node, | 88 void OnBeginNavigation(FrameTreeNode* frame_tree_node, |
89 const CommonNavigationParams& common_params, | 89 const CommonNavigationParams& common_params, |
90 const BeginNavigationParams& begin_params) override; | 90 const BeginNavigationParams& begin_params) override; |
| 91 void OnAbortNavigation(FrameTreeNode* frame_tree_node) override; |
91 void LogResourceRequestTime(base::TimeTicks timestamp, | 92 void LogResourceRequestTime(base::TimeTicks timestamp, |
92 const GURL& url) override; | 93 const GURL& url) override; |
93 void LogBeforeUnloadTime( | 94 void LogBeforeUnloadTime( |
94 const base::TimeTicks& renderer_before_unload_start_time, | 95 const base::TimeTicks& renderer_before_unload_start_time, |
95 const base::TimeTicks& renderer_before_unload_end_time) override; | 96 const base::TimeTicks& renderer_before_unload_end_time) override; |
96 void CancelNavigation(FrameTreeNode* frame_tree_node) override; | 97 void CancelNavigation(FrameTreeNode* frame_tree_node, |
| 98 bool inform_renderer) override; |
97 void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) override; | 99 void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) override; |
98 | 100 |
99 private: | 101 private: |
100 // Holds data used to track browser side navigation metrics. | 102 // Holds data used to track browser side navigation metrics. |
101 struct NavigationMetricsData; | 103 struct NavigationMetricsData; |
102 | 104 |
103 friend class NavigatorTestWithBrowserSideNavigation; | 105 friend class NavigatorTestWithBrowserSideNavigation; |
104 ~NavigatorImpl() override; | 106 ~NavigatorImpl() override; |
105 | 107 |
106 // Navigates to the given entry, which might be the pending entry (if | 108 // Navigates to the given entry, which might be the pending entry (if |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 NavigatorDelegate* delegate_; | 156 NavigatorDelegate* delegate_; |
155 | 157 |
156 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; | 158 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; |
157 | 159 |
158 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 160 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
159 }; | 161 }; |
160 | 162 |
161 } // namespace content | 163 } // namespace content |
162 | 164 |
163 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 165 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |