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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 const BeginNavigationParams& begin_params) override; | 88 const BeginNavigationParams& begin_params) override; |
89 void FailedNavigation(FrameTreeNode* frame_tree_node, | 89 void FailedNavigation(FrameTreeNode* frame_tree_node, |
90 bool has_stale_copy_in_cache, | 90 bool has_stale_copy_in_cache, |
91 int error_code) override; | 91 int error_code) override; |
92 void LogResourceRequestTime(base::TimeTicks timestamp, | 92 void LogResourceRequestTime(base::TimeTicks timestamp, |
93 const GURL& url) override; | 93 const GURL& url) override; |
94 void LogBeforeUnloadTime( | 94 void LogBeforeUnloadTime( |
95 const base::TimeTicks& renderer_before_unload_start_time, | 95 const base::TimeTicks& renderer_before_unload_start_time, |
96 const base::TimeTicks& renderer_before_unload_end_time) override; | 96 const base::TimeTicks& renderer_before_unload_end_time) override; |
97 void CancelNavigation(FrameTreeNode* frame_tree_node) override; | 97 void CancelNavigation(FrameTreeNode* frame_tree_node) override; |
| 98 NavigationHandleImpl* GetNavigationHandleForFrameHost( |
| 99 RenderFrameHostImpl* render_frame_host) 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 |
107 // |is_pending_entry| is true). Private because all callers should use either | 109 // |is_pending_entry| is true). Private because all callers should use either |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 NavigatorDelegate* delegate_; | 160 NavigatorDelegate* delegate_; |
159 | 161 |
160 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; | 162 std::unique_ptr<NavigatorImpl::NavigationMetricsData> navigation_data_; |
161 | 163 |
162 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 164 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
163 }; | 165 }; |
164 | 166 |
165 } // namespace content | 167 } // namespace content |
166 | 168 |
167 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 169 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |