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

Unified Diff: chrome/browser/history/history_service.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_service.h ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_service.cc
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index a4513e1d6037cedcced8d0df6d9adf32428c5d04..7c10eefb2e55be538c577864e937b679912c01d1 100644
--- a/chrome/browser/history/history_service.cc
+++ b/chrome/browser/history/history_service.cc
@@ -279,10 +279,11 @@ void HistoryService::Cleanup() {
delete thread;
}
-void HistoryService::NotifyRenderProcessHostDestruction(const void* host) {
+void HistoryService::ClearCachedDataForContextID(
+ history::ContextID context_id) {
DCHECK(thread_checker_.CalledOnValidThread());
ScheduleAndForget(PRIORITY_NORMAL,
- &HistoryBackend::NotifyRenderProcessHostDestruction, host);
+ &HistoryBackend::ClearCachedDataForContextID, context_id);
}
history::URLDatabase* HistoryService::InMemoryDatabase() {
@@ -410,7 +411,7 @@ void HistoryService::SetOnBackendDestroyTask(const base::Closure& task) {
void HistoryService::AddPage(const GURL& url,
Time time,
- const void* id_scope,
+ history::ContextID context_id,
int32 page_id,
const GURL& referrer,
const history::RedirectList& redirects,
@@ -419,7 +420,7 @@ void HistoryService::AddPage(const GURL& url,
bool did_replace_entry) {
DCHECK(thread_checker_.CalledOnValidThread());
AddPage(
- history::HistoryAddPageArgs(url, time, id_scope, page_id, referrer,
+ history::HistoryAddPageArgs(url, time, context_id, page_id, referrer,
redirects, transition, visit_source,
did_replace_entry));
}
@@ -481,13 +482,13 @@ void HistoryService::SetPageTitle(const GURL& url,
ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::SetPageTitle, url, title);
}
-void HistoryService::UpdateWithPageEndTime(const void* host,
+void HistoryService::UpdateWithPageEndTime(history::ContextID context_id,
int32 page_id,
const GURL& url,
Time end_ts) {
DCHECK(thread_checker_.CalledOnValidThread());
ScheduleAndForget(PRIORITY_NORMAL, &HistoryBackend::UpdateWithPageEndTime,
- host, page_id, url, end_ts);
+ context_id, page_id, url, end_ts);
}
void HistoryService::AddPageWithDetails(const GURL& url,
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/history/history_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698