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

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

Issue 2587443002: predictors: Make speculative_prefetch_predictor work with PlzNavigate (Closed)
Patch Set: Modified after clamy@ review 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_common.h
diff --git a/chrome/browser/predictors/resource_prefetch_common.h b/chrome/browser/predictors/resource_prefetch_common.h
index afbd9240545ce0846f09f6818db313f583d4ee85..46e9707d488ea3f57c03100fec0df0f341dbbde8 100644
--- a/chrome/browser/predictors/resource_prefetch_common.h
+++ b/chrome/browser/predictors/resource_prefetch_common.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include "base/time/time.h"
+#include "components/sessions/core/session_id.h"
#include "url/gurl.h"
class Profile;
@@ -43,17 +44,14 @@ struct NavigationID {
const GURL& main_frame_url,
const base::TimeTicks& creation_time);
NavigationID(const NavigationID& other);
+
bool operator<(const NavigationID& rhs) const;
bool operator==(const NavigationID& rhs) const;
- bool IsSameRenderer(const NavigationID& other) const;
-
- // Returns true iff the render_process_id_, render_frame_id_ and
- // frame_url_ has been set correctly.
+ // Returns true iff the tab_id is valid and the Main frame URL is set.
bool is_valid() const;
- int render_process_id;
- int render_frame_id;
+ SessionID::id_type tab_id;
GURL main_frame_url;
// NOTE: Even though we store the creation time here, it is not used during
« 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