| 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 #ifndef CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ | 5 #ifndef CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ |
| 6 #define CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ | 6 #define CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 int64 frame_id, | 130 int64 frame_id, |
| 131 bool is_main_frame, | 131 bool is_main_frame, |
| 132 const GURL& validated_url, | 132 const GURL& validated_url, |
| 133 bool is_error_page, | 133 bool is_error_page, |
| 134 content::RenderViewHost* render_view_host) OVERRIDE; | 134 content::RenderViewHost* render_view_host) OVERRIDE; |
| 135 virtual void DidStopLoading( | 135 virtual void DidStopLoading( |
| 136 content::RenderViewHost* render_view_host) OVERRIDE; | 136 content::RenderViewHost* render_view_host) OVERRIDE; |
| 137 | 137 |
| 138 private: | 138 private: |
| 139 explicit LoadTimeStatsTabHelper(content::WebContents* web_contents); | 139 explicit LoadTimeStatsTabHelper(content::WebContents* web_contents); |
| 140 static int kUserDataKey; | |
| 141 friend class WebContentsUserData<LoadTimeStatsTabHelper>; | 140 friend class WebContentsUserData<LoadTimeStatsTabHelper>; |
| 142 | 141 |
| 143 // Calls into LoadTimeStats to notify that a reportable event has occurred | 142 // Calls into LoadTimeStats to notify that a reportable event has occurred |
| 144 // for the tab being observed. | 143 // for the tab being observed. |
| 145 void NotifyLoadTimeStats(LoadTimeStats::TabEvent event, | 144 void NotifyLoadTimeStats(LoadTimeStats::TabEvent event, |
| 146 content::RenderViewHost* render_view_host); | 145 content::RenderViewHost* render_view_host); |
| 147 | 146 |
| 148 bool is_otr_profile_; | 147 bool is_otr_profile_; |
| 149 | 148 |
| 150 DISALLOW_COPY_AND_ASSIGN(LoadTimeStatsTabHelper); | 149 DISALLOW_COPY_AND_ASSIGN(LoadTimeStatsTabHelper); |
| 151 }; | 150 }; |
| 152 | 151 |
| 153 } // namespace chrome_browser_net | 152 } // namespace chrome_browser_net |
| 154 | 153 |
| 155 #endif // CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ | 154 #endif // CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ |
| OLD | NEW |