| OLD | NEW |
| 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 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" | 5 #include "chrome/renderer/page_load_metrics/metrics_render_frame_observer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "components/page_load_metrics/renderer/page_timing_metrics_sender.h" | 12 #include "chrome/renderer/page_load_metrics/page_timing_metrics_sender.h" |
| 13 #include "content/public/renderer/render_frame.h" | 13 #include "content/public/renderer/render_frame.h" |
| 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 15 #include "third_party/WebKit/public/web/WebDataSource.h" | 15 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 16 #include "third_party/WebKit/public/web/WebDocument.h" | 16 #include "third_party/WebKit/public/web/WebDocument.h" |
| 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 18 #include "third_party/WebKit/public/web/WebPerformance.h" | 18 #include "third_party/WebKit/public/web/WebPerformance.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 namespace page_load_metrics { | 21 namespace page_load_metrics { |
| 22 | 22 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 bool no_frame = !render_frame() || !render_frame()->GetWebFrame(); | 162 bool no_frame = !render_frame() || !render_frame()->GetWebFrame(); |
| 163 DCHECK(!no_frame); | 163 DCHECK(!no_frame); |
| 164 return no_frame; | 164 return no_frame; |
| 165 } | 165 } |
| 166 | 166 |
| 167 void MetricsRenderFrameObserver::OnDestruct() { | 167 void MetricsRenderFrameObserver::OnDestruct() { |
| 168 delete this; | 168 delete this; |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace page_load_metrics | 171 } // namespace page_load_metrics |
| OLD | NEW |