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

Side by Side Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.h

Issue 2321083002: [NoStatePrefetch] Add performance histograms. (Closed)
Patch Set: Review comments Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_METRICS_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 const base::TimeTicks navigation_start_; 243 const base::TimeTicks navigation_start_;
244 244
245 // Time this page load was committed. If this page load hasn't committed, 245 // Time this page load was committed. If this page load hasn't committed,
246 // |commit_time_| will be zero. 246 // |commit_time_| will be zero.
247 base::TimeTicks commit_time_; 247 base::TimeTicks commit_time_;
248 248
249 // The URL of this page load. This is the provisional url before commit 249 // The URL of this page load. This is the provisional url before commit
250 // (before redirects), and the committed url after commit. 250 // (before redirects), and the committed url after commit.
251 GURL url_; 251 GURL url_;
252 252
253 // The start URL for this page load (before redirects).
254 GURL start_url_;
255
253 std::unique_ptr<FailedProvisionalLoadInfo> failed_provisional_load_info_; 256 std::unique_ptr<FailedProvisionalLoadInfo> failed_provisional_load_info_;
254 257
255 // Will be ABORT_NONE if we have not aborted this load yet. Otherwise will 258 // Will be ABORT_NONE if we have not aborted this load yet. Otherwise will
256 // be the first abort action the user performed. 259 // be the first abort action the user performed.
257 UserAbortType abort_type_; 260 UserAbortType abort_type_;
258 261
259 // This boolean is only an approximation. As the aborts pipeline is updated, 262 // This boolean is only an approximation. As the aborts pipeline is updated,
260 // more abort types will have this set to true. Currently, this is only set 263 // more abort types will have this set to true. Currently, this is only set
261 // for navigations aborting navigations. 264 // for navigations aborting navigations.
262 bool abort_user_initiated_; 265 bool abort_user_initiated_;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 419
417 // Has the MWCO observed at least one navigation? 420 // Has the MWCO observed at least one navigation?
418 bool has_navigated_; 421 bool has_navigated_;
419 422
420 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 423 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
421 }; 424 };
422 425
423 } // namespace page_load_metrics 426 } // namespace page_load_metrics
424 427
425 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 428 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/page_load_metrics/metrics_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698