Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: chrome/browser/data_use_measurement/chrome_data_use_ascriber.h

Issue 2614203002: Record data use of user traffic by different core page transition types (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698