| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/prerender/prerender_tab_helper.h" | 5 #include "chrome/browser/prerender/prerender_tab_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "chrome/browser/prerender/prerender_histograms.h" | 10 #include "chrome/browser/prerender/prerender_histograms.h" |
| 11 #include "chrome/browser/prerender/prerender_manager.h" | 11 #include "chrome/browser/prerender/prerender_manager.h" |
| 12 #include "chrome/browser/prerender/prerender_manager_factory.h" | 12 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
| 15 #include "content/public/browser/resource_request_details.h" | 15 #include "content/public/browser/resource_request_details.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 | 17 |
| 18 using content::WebContents; | 18 using content::WebContents; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 prerender_manager->RecordPerceivedPageLoadTime( | 177 prerender_manager->RecordPerceivedPageLoadTime( |
| 178 origin_, navigation_type_, perceived_page_load_time, | 178 origin_, navigation_type_, perceived_page_load_time, |
| 179 fraction_plt_elapsed_at_swap_in, url_); | 179 fraction_plt_elapsed_at_swap_in, url_); |
| 180 | 180 |
| 181 // Reset state for the next navigation. | 181 // Reset state for the next navigation. |
| 182 navigation_type_ = NAVIGATION_TYPE_NORMAL; | 182 navigation_type_ = NAVIGATION_TYPE_NORMAL; |
| 183 origin_ = ORIGIN_NONE; | 183 origin_ = ORIGIN_NONE; |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace prerender | 186 } // namespace prerender |
| OLD | NEW |