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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_test_util.h

Issue 2587443002: predictors: Make speculative_prefetch_predictor work with PlzNavigate (Closed)
Patch Set: Removed Frame Tree Node Id Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/predictors/resource_prefetch_predictor_test_util.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_test_util.h b/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
index bd72225256f72fc6d67cd05cb42610512fa1d7b6..7b87cbd1d6ae7bc479c33f425d69519d91808f70 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor_test_util.h
@@ -4,6 +4,8 @@
#ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_
#define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_TEST_UTIL_H_
+#include <map>
+#include <memory>
#include <string>
#include <vector>
@@ -35,7 +37,6 @@ RedirectData CreateRedirectData(const std::string& primary_key,
uint64_t last_visit_time = 0);
NavigationID CreateNavigationID(int process_id,
- int render_frame_id,
const std::string& main_frame_url);
ResourcePrefetchPredictor::PageRequestSummary CreatePageRequestSummary(
@@ -45,8 +46,7 @@ ResourcePrefetchPredictor::PageRequestSummary CreatePageRequestSummary(
subresource_requests);
ResourcePrefetchPredictor::URLRequestSummary CreateURLRequestSummary(
- int process_id,
- int render_frame_id,
+ int tab_id,
const std::string& main_frame_url,
const std::string& resource_url = std::string(),
content::ResourceType resource_type = content::RESOURCE_TYPE_MAIN_FRAME,
@@ -69,6 +69,11 @@ std::ostream& operator<<(
std::ostream& stream,
const ResourcePrefetchPredictor::URLRequestSummary& summary);
std::ostream& operator<<(std::ostream& stream, const NavigationID& id);
+std::ostream& operator<<(
+ std::ostream& stream,
+ const std::map<
+ NavigationID,
+ std::unique_ptr<ResourcePrefetchPredictor::PageRequestSummary>>& map);
bool operator==(const PrefetchData& lhs, const PrefetchData& rhs);
bool operator==(const ResourceData& lhs, const ResourceData& rhs);

Powered by Google App Engine
This is Rietveld 408576698