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

Side by Side Diff: chrome/browser/predictors/resource_prefetch_predictor.h

Issue 2301093002: predictors: Remove unused histograms for speculative_prefetch_predictor. (Closed)
Patch Set: . Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_ 5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_ 6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Functions called on different network events pertaining to the loading of 208 // Functions called on different network events pertaining to the loading of
209 // main frame resource or sub resources. 209 // main frame resource or sub resources.
210 void OnMainFrameRequest(const URLRequestSummary& request); 210 void OnMainFrameRequest(const URLRequestSummary& request);
211 void OnMainFrameResponse(const URLRequestSummary& response); 211 void OnMainFrameResponse(const URLRequestSummary& response);
212 void OnMainFrameRedirect(const URLRequestSummary& response); 212 void OnMainFrameRedirect(const URLRequestSummary& response);
213 void OnSubresourceResponse(const URLRequestSummary& response); 213 void OnSubresourceResponse(const URLRequestSummary& response);
214 214
215 // Called when onload completes for a navigation. We treat this point as the 215 // Called when onload completes for a navigation. We treat this point as the
216 // "completion" of the navigation. The resources requested by the page up to 216 // "completion" of the navigation. The resources requested by the page up to
217 // this point are the only ones considered for prefetching. Return the page 217 // this point are the only ones considered for prefetching.
218 // load time for testing. 218 void OnNavigationComplete(const NavigationID& nav_id_without_timing_info);
219 base::TimeDelta OnNavigationComplete(
220 const NavigationID& nav_id_without_timing_info);
221 219
222 // Returns true if there is PrefetchData that can be used for the 220 // Returns true if there is PrefetchData that can be used for the
223 // navigation and fills in the |prefetch_data| to resources that need to be 221 // navigation and fills in the |prefetch_data| to resources that need to be
224 // prefetched. 222 // prefetched.
225 bool GetPrefetchData(const NavigationID& navigation_id, 223 bool GetPrefetchData(const NavigationID& navigation_id,
226 ResourcePrefetcher::RequestVector* prefetch_requests, 224 ResourcePrefetcher::RequestVector* prefetch_requests,
227 PrefetchKeyType* key_type); 225 PrefetchKeyType* key_type);
228 226
229 // Converts a PrefetchData into a ResourcePrefetcher::RequestVector. 227 // Converts a PrefetchData into a ResourcePrefetcher::RequestVector.
230 void PopulatePrefetcherRequest(const PrefetchData& data, 228 void PopulatePrefetcherRequest(const PrefetchData& data,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 343
346 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> 344 ScopedObserver<history::HistoryService, history::HistoryServiceObserver>
347 history_service_observer_; 345 history_service_observer_;
348 346
349 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictor); 347 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictor);
350 }; 348 };
351 349
352 } // namespace predictors 350 } // namespace predictors
353 351
354 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_ 352 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698