OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 5 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void WasShownOrHidden(int main_render_process_id, | 97 void WasShownOrHidden(int main_render_process_id, |
98 int main_render_frame_id, | 98 int main_render_frame_id, |
99 bool visible); | 99 bool visible); |
100 | 100 |
101 // Called whenever one of the render frames of a WebContents is swapped. | 101 // Called whenever one of the render frames of a WebContents is swapped. |
102 void RenderFrameHostChanged(int old_render_process_id, | 102 void RenderFrameHostChanged(int old_render_process_id, |
103 int old_render_frame_id, | 103 int old_render_frame_id, |
104 int new_render_process_id, | 104 int new_render_process_id, |
105 int new_render_frame_id); | 105 int new_render_frame_id); |
106 | 106 |
| 107 void DidFinishNavigation(int render_process_id, |
| 108 int render_frame_id, |
| 109 uint32_t page_transition); |
| 110 |
107 private: | 111 private: |
108 friend class ChromeDataUseAscriberTest; | 112 friend class ChromeDataUseAscriberTest; |
109 | 113 |
110 // Entry in the |data_use_recorders_| list which owns all instances of | 114 // Entry in the |data_use_recorders_| list which owns all instances of |
111 // DataUseRecorder. | 115 // DataUseRecorder. |
112 typedef std::list<ChromeDataUseRecorder> DataUseRecorderList; | 116 typedef std::list<ChromeDataUseRecorder> DataUseRecorderList; |
113 typedef DataUseRecorderList::iterator DataUseRecorderEntry; | 117 typedef DataUseRecorderList::iterator DataUseRecorderEntry; |
114 | 118 |
115 struct GlobalRequestIDHash { | 119 struct GlobalRequestIDHash { |
116 public: | 120 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 174 |
171 // Contains the mainframe IDs that are currently visible. | 175 // Contains the mainframe IDs that are currently visible. |
172 base::hash_set<RenderFrameHostID> visible_main_render_frames_; | 176 base::hash_set<RenderFrameHostID> visible_main_render_frames_; |
173 | 177 |
174 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber); | 178 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber); |
175 }; | 179 }; |
176 | 180 |
177 } // namespace data_use_measurement | 181 } // namespace data_use_measurement |
178 | 182 |
179 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ | 183 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ |
OLD | NEW |