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