Chromium Code Reviews| Index: content/browser/frame_host/navigator.h |
| diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h |
| index cfd394f0d9408606abae1a13c77eb66c9bb53652..5063faf20e525e5bd01b3ea71cf92b5dca876cfd 100644 |
| --- a/content/browser/frame_host/navigator.h |
| +++ b/content/browser/frame_host/navigator.h |
| @@ -141,6 +141,12 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { |
| virtual void LogResourceRequestTime( |
| base::TimeTicks timestamp, const GURL& url) {}; |
| + // Called to record the time it took to execute the before unload hook for the |
| + // current navigation. |
| + virtual void LogBeforeUnloadTime( |
|
clamy
2014/10/09 19:02:32
Note: if we only discount the time it took to run
carlosk
2014/10/10 10:00:03
So you mean that javascript CPU load could delay t
clamy
2014/10/10 19:59:12
No the delay is between the moment we send a Befor
carlosk
2014/10/13 14:05:50
That's precisely the delay I referred to. :)
I'll
|
| + const base::TimeTicks& renderer_before_unload_start_time, |
| + const base::TimeTicks& renderer_before_unload_end_time) {} |
| + |
| protected: |
| friend class base::RefCounted<Navigator>; |
| virtual ~Navigator() {} |