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

Side by Side Diff: chrome/renderer/page_load_metrics/metrics_render_frame_observer.h

Issue 2859393002: Report page load timing information for child frames. (Closed)
Patch Set: rebase Created 3 years, 7 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_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_ 6 #define CHROME_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 private: 45 private:
46 // Will be null when we're not actively sending metrics. 46 // Will be null when we're not actively sending metrics.
47 std::unique_ptr<PageTimingMetricsSender> page_timing_metrics_sender_; 47 std::unique_ptr<PageTimingMetricsSender> page_timing_metrics_sender_;
48 48
49 void SendMetrics(); 49 void SendMetrics();
50 virtual bool ShouldSendMetrics() const; 50 virtual bool ShouldSendMetrics() const;
51 virtual PageLoadTiming GetTiming() const; 51 virtual PageLoadTiming GetTiming() const;
52 virtual std::unique_ptr<base::Timer> CreateTimer() const; 52 virtual std::unique_ptr<base::Timer> CreateTimer() const;
53 virtual bool HasNoRenderFrame() const; 53 virtual bool HasNoRenderFrame() const;
54 virtual bool IsMainFrame() const;
55 54
56 DISALLOW_COPY_AND_ASSIGN(MetricsRenderFrameObserver); 55 DISALLOW_COPY_AND_ASSIGN(MetricsRenderFrameObserver);
57 }; 56 };
58 57
59 } // namespace page_load_metrics 58 } // namespace page_load_metrics
60 59
61 #endif // CHROME_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_ 60 #endif // CHROME_RENDERER_PAGE_LOAD_METRICS_METRICS_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/renderer/page_load_metrics/metrics_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698