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

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

Issue 2913063002: PlzNavigate support in data use ascriber (Closed)
Patch Set: ps Created 3 years, 6 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 private: 137 private:
138 DataUseRecorderEntry entry_; 138 DataUseRecorderEntry entry_;
139 }; 139 };
140 140
141 DataUseRecorderEntry GetOrCreateDataUseRecorderEntry( 141 DataUseRecorderEntry GetOrCreateDataUseRecorderEntry(
142 net::URLRequest* request); 142 net::URLRequest* request);
143 143
144 void NotifyPageLoadCommit(DataUseRecorderEntry entry); 144 void NotifyPageLoadCommit(DataUseRecorderEntry entry);
145 void NotifyDataUseCompleted(DataUseRecorderEntry entry); 145 void NotifyDataUseCompleted(DataUseRecorderEntry entry);
146 146
147 // Deletes the first key in |main_render_frame_data_use_map_| whose value
148 // corresponds to |entry|.
149 void DeleteFromMainRenderFrameDataUseMap(DataUseRecorderEntry entry);
150
147 DataUseRecorderEntry CreateNewDataUseRecorder( 151 DataUseRecorderEntry CreateNewDataUseRecorder(
148 net::URLRequest* request, 152 net::URLRequest* request,
149 DataUse::TrafficType traffic_type); 153 DataUse::TrafficType traffic_type);
150 154
151 bool IsRecorderInPendingNavigationMap(net::URLRequest* request); 155 bool IsRecorderInPendingNavigationMap(net::URLRequest* request);
152 156
153 bool IsRecorderInRenderFrameMap(net::URLRequest* request); 157 bool IsRecorderInRenderFrameMap(net::URLRequest* request);
154 158
155 // Owner for all instances of DataUseRecorder. An instance is kept in this 159 // Owner for all instances of DataUseRecorder. An instance is kept in this
156 // list if any entity (render frame hosts, URLRequests, pending navigations) 160 // list if any entity (render frame hosts, URLRequests, pending navigations)
(...skipping 28 matching lines...) Expand all
185 189
186 // Contains the mainframe IDs that are currently visible. 190 // Contains the mainframe IDs that are currently visible.
187 base::hash_set<RenderFrameHostID> visible_main_render_frames_; 191 base::hash_set<RenderFrameHostID> visible_main_render_frames_;
188 192
189 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber); 193 DISALLOW_COPY_AND_ASSIGN(ChromeDataUseAscriber);
190 }; 194 };
191 195
192 } // namespace data_use_measurement 196 } // namespace data_use_measurement
193 197
194 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_ 198 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_CHROME_DATA_USE_ASCRIBER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698