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

Unified Diff: chrome/browser/history/visit_tracker.h

Issue 322983003: Rename HistoryService::NotifyRenderProcessHostDestruction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 6 years, 6 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
« no previous file with comments | « chrome/browser/history/top_sites_impl_unittest.cc ('k') | chrome/browser/history/visit_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « chrome/browser/history/top_sites_impl_unittest.cc ('k') | chrome/browser/history/visit_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698