Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: chrome/browser/page_load_metrics/experiments/delay_navigation_throttle.h

Issue 2803673002: Add metrics for DelayNavigationThrottle (Closed)
Patch Set: revert inadvertent file change Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTLE_H _ 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTLE_H _
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTLE_H _ 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTLE_H _
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // content::NavigationThrottle: 54 // content::NavigationThrottle:
55 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override; 55 content::NavigationThrottle::ThrottleCheckResult WillStartRequest() override;
56 56
57 private: 57 private:
58 void OnDelayComplete(); 58 void OnDelayComplete();
59 59
60 const scoped_refptr<base::TaskRunner> task_runner_; 60 const scoped_refptr<base::TaskRunner> task_runner_;
61 const base::TimeDelta navigation_delay_; 61 const base::TimeDelta navigation_delay_;
62 62
63 // The time we added a delay to this navigation.
64 base::TimeTicks delay_start_time_;
65
63 // This has to be the last member of the class. 66 // This has to be the last member of the class.
64 base::WeakPtrFactory<DelayNavigationThrottle> weak_ptr_factory_; 67 base::WeakPtrFactory<DelayNavigationThrottle> weak_ptr_factory_;
65 68
66 DISALLOW_COPY_AND_ASSIGN(DelayNavigationThrottle); 69 DISALLOW_COPY_AND_ASSIGN(DelayNavigationThrottle);
67 }; 70 };
68 71
69 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTL E_H_ 72 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_EXPERIMENTS_DELAY_NAVIGATION_THROTTL E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698