| 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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // PlzNavigate | 134 // PlzNavigate |
| 135 // Cancel a NavigationRequest for |frame_tree_node|. Called when | 135 // Cancel a NavigationRequest for |frame_tree_node|. Called when |
| 136 // |frame_tree_node| is destroyed. | 136 // |frame_tree_node| is destroyed. |
| 137 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} | 137 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} |
| 138 | 138 |
| 139 // Called when the first resource request for a given navigation is executed | 139 // Called when the first resource request for a given navigation is executed |
| 140 // so that it can be tracked into an histogram. | 140 // so that it can be tracked into an histogram. |
| 141 virtual void LogResourceRequestTime( | 141 virtual void LogResourceRequestTime( |
| 142 base::TimeTicks timestamp, const GURL& url) {}; | 142 base::TimeTicks timestamp, const GURL& url) {}; |
| 143 | 143 |
| 144 // Called to record the time it took to execute the before unload hook for the |
| 145 // current navigation. |
| 146 virtual void LogBeforeUnloadTime( |
| 147 const base::TimeTicks& renderer_before_unload_start_time, |
| 148 const base::TimeTicks& renderer_before_unload_end_time) {} |
| 149 |
| 144 protected: | 150 protected: |
| 145 friend class base::RefCounted<Navigator>; | 151 friend class base::RefCounted<Navigator>; |
| 146 virtual ~Navigator() {} | 152 virtual ~Navigator() {} |
| 147 }; | 153 }; |
| 148 | 154 |
| 149 } // namespace content | 155 } // namespace content |
| 150 | 156 |
| 151 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 157 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |