Index: chrome/browser/history/visit_tracker.h |
diff --git a/chrome/browser/history/visit_tracker.h b/chrome/browser/history/visit_tracker.h |
index 43de7a0f96dc7a69e252d655ff75594a9279cb73..00b0c46f03ff38bba57462a20b4e77dbdcc86b03 100644 |
--- a/chrome/browser/history/visit_tracker.h |
+++ b/chrome/browser/history/visit_tracker.h |
@@ -25,21 +25,21 @@ class VisitTracker { |
// Notifications ------------------------------------------------------------- |
- void AddVisit(const void* host, |
+ void AddVisit(ContextID context_id, |
int32 page_id, |
const GURL& url, |
VisitID visit_id); |
// When a RenderProcessHost is destroyed, we want to clear out our saved |
// transitions/visit IDs for it. |
- void NotifyRenderProcessHostDestruction(const void* host); |
+ void ClearCachedDataForContextID(ContextID context_id); |
// Querying ------------------------------------------------------------------ |
// Returns the visit ID for the transition given information about the visit |
// supplied by the renderer. We will return 0 if there is no appropriate |
// referring visit. |
- VisitID GetLastVisit(const void* host, int32 page_id, const GURL& url); |
+ VisitID GetLastVisit(ContextID context_id, int32 page_id, const GURL& url); |
private: |
struct Transition { |
@@ -48,7 +48,7 @@ class VisitTracker { |
VisitID visit_id; // Visit ID generated by history. |
}; |
typedef std::vector<Transition> TransitionList; |
- typedef std::map<const void*, TransitionList*> HostList; |
+ typedef std::map<ContextID, TransitionList*> ContextList; |
// Expires oldish items in the given transition list. This keeps the list |
// size small by removing items that are unlikely to be needed, which is |
@@ -56,7 +56,7 @@ class VisitTracker { |
void CleanupTransitionList(TransitionList* transitions); |
// Maps render view hosts to lists of recent transitions. |
- HostList hosts_; |
+ ContextList contexts_; |
DISALLOW_COPY_AND_ASSIGN(VisitTracker); |
}; |