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

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

Issue 2228003002: predictors: Fix duplicate content type detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/predictors/resource_prefetch_common.h
diff --git a/chrome/browser/predictors/resource_prefetch_common.h b/chrome/browser/predictors/resource_prefetch_common.h
index aa03ee7050ebf9f907554edc2351b389e20ba23b..33812ff5183a9975a1ca432698b828bb81cab67c 100644
--- a/chrome/browser/predictors/resource_prefetch_common.h
+++ b/chrome/browser/predictors/resource_prefetch_common.h
@@ -34,9 +34,10 @@ enum PrefetchKeyType {
// Represents a single navigation for a render frame.
struct NavigationID {
- // TODO(shishir): Maybe take process_id, frame_id and url as input in
- // constructor.
NavigationID();
+ NavigationID(int render_process_id,
+ int render_frame_id,
+ const GURL& main_frame_url);
NavigationID(const NavigationID& other);
explicit NavigationID(content::WebContents* web_contents);
bool operator<(const NavigationID& rhs) const;
« no previous file with comments | « chrome/browser/net/resource_prefetch_predictor_observer.cc ('k') | chrome/browser/predictors/resource_prefetch_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698