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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 public: | 125 public: |
126 virtual ~LoadTimeStatsTabHelper(); | 126 virtual ~LoadTimeStatsTabHelper(); |
127 | 127 |
128 // content::WebContentsObserver implementation | 128 // content::WebContentsObserver implementation |
129 virtual void DidStartProvisionalLoadForFrame( | 129 virtual void DidStartProvisionalLoadForFrame( |
130 int64 frame_id, | 130 int64 frame_id, |
131 int64 parent_frame_id, | 131 int64 parent_frame_id, |
132 bool is_main_frame, | 132 bool is_main_frame, |
133 const GURL& validated_url, | 133 const GURL& validated_url, |
134 bool is_error_page, | 134 bool is_error_page, |
| 135 bool is_iframe_srcdoc, |
135 content::RenderViewHost* render_view_host) OVERRIDE; | 136 content::RenderViewHost* render_view_host) OVERRIDE; |
136 virtual void DidStopLoading( | 137 virtual void DidStopLoading( |
137 content::RenderViewHost* render_view_host) OVERRIDE; | 138 content::RenderViewHost* render_view_host) OVERRIDE; |
138 | 139 |
139 private: | 140 private: |
140 explicit LoadTimeStatsTabHelper(content::WebContents* web_contents); | 141 explicit LoadTimeStatsTabHelper(content::WebContents* web_contents); |
141 friend class content::WebContentsUserData<LoadTimeStatsTabHelper>; | 142 friend class content::WebContentsUserData<LoadTimeStatsTabHelper>; |
142 | 143 |
143 // Calls into LoadTimeStats to notify that a reportable event has occurred | 144 // Calls into LoadTimeStats to notify that a reportable event has occurred |
144 // for the tab being observed. | 145 // for the tab being observed. |
145 void NotifyLoadTimeStats(LoadTimeStats::TabEvent event, | 146 void NotifyLoadTimeStats(LoadTimeStats::TabEvent event, |
146 content::RenderViewHost* render_view_host); | 147 content::RenderViewHost* render_view_host); |
147 | 148 |
148 bool is_otr_profile_; | 149 bool is_otr_profile_; |
149 | 150 |
150 DISALLOW_COPY_AND_ASSIGN(LoadTimeStatsTabHelper); | 151 DISALLOW_COPY_AND_ASSIGN(LoadTimeStatsTabHelper); |
151 }; | 152 }; |
152 | 153 |
153 } // namespace chrome_browser_net | 154 } // namespace chrome_browser_net |
154 | 155 |
155 #endif // CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ | 156 #endif // CHROME_BROWSER_NET_LOAD_TIME_STATS_H_ |
OLD | NEW |