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

Unified Diff: chrome/browser/history/history_backend.cc

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/history_backend.h ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend.cc
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index 497f1aa5b023cff3adbd50ee2c9036f9b02b9fbb..4164513e245881deaa1fcca18ef8a735e44259d5 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -220,8 +220,8 @@ void HistoryBackend::Closing() {
delegate_.reset();
}
-void HistoryBackend::NotifyRenderProcessHostDestruction(const void* host) {
- tracker_.NotifyRenderProcessHostDestruction(host);
+void HistoryBackend::ClearCachedDataForContextID(ContextID context_id) {
+ tracker_.ClearCachedDataForContextID(context_id);
}
base::FilePath HistoryBackend::GetThumbnailFileName() const {
@@ -339,12 +339,12 @@ SegmentID HistoryBackend::UpdateSegments(
return segment_id;
}
-void HistoryBackend::UpdateWithPageEndTime(const void* host,
+void HistoryBackend::UpdateWithPageEndTime(ContextID context_id,
int32 page_id,
const GURL& url,
Time end_ts) {
// Will be filled with the URL ID and the visit ID of the last addition.
- VisitID visit_id = tracker_.GetLastVisit(host, page_id, url);
+ VisitID visit_id = tracker_.GetLastVisit(context_id, page_id, url);
UpdateVisitDuration(visit_id, end_ts);
}
@@ -368,7 +368,7 @@ void HistoryBackend::AddPage(const HistoryAddPageArgs& request) {
// Will be filled with the URL ID and the visit ID of the last addition.
std::pair<URLID, VisitID> last_ids(0, tracker_.GetLastVisit(
- request.id_scope, request.page_id, request.referrer));
+ request.context_id, request.page_id, request.referrer));
VisitID from_visit_id = last_ids.second;
@@ -531,7 +531,7 @@ void HistoryBackend::AddPage(const HistoryAddPageArgs& request) {
if (stripped_transition != content::PAGE_TRANSITION_AUTO_SUBFRAME &&
stripped_transition != content::PAGE_TRANSITION_MANUAL_SUBFRAME &&
!is_keyword_generated) {
- tracker_.AddVisit(request.id_scope, request.page_id, request.url,
+ tracker_.AddVisit(request.context_id, request.page_id, request.url,
last_ids.second);
}
« no previous file with comments | « chrome/browser/history/history_backend.h ('k') | chrome/browser/history/history_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698