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

Unified Diff: chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: Made construction params a cost&. Created 3 years, 7 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 | « no previous file | chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc
diff --git a/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc b/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc
index e2ad52e3db84c34d940866f7908c4c5561bf1687..6e2842249dac4c348aac54fee95639aebd6cd4b6 100644
--- a/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc
+++ b/chrome/browser/android/offline_pages/prefetch/prefetch_background_task.cc
@@ -30,7 +30,7 @@ static jboolean StartPrefetchTask(JNIEnv* env,
if (!prefetch_service)
return false;
- prefetch_service->GetDispatcher()->BeginBackgroundTask(
+ prefetch_service->GetPrefetchDispatcher()->BeginBackgroundTask(
base::MakeUnique<PrefetchBackgroundTask>(env, jcaller, prefetch_service));
return true;
}
@@ -69,7 +69,7 @@ PrefetchBackgroundTask::~PrefetchBackgroundTask() {
bool PrefetchBackgroundTask::OnStopTask(JNIEnv* env,
const JavaParamRef<jobject>& jcaller) {
DCHECK(jcaller.obj() == java_prefetch_background_task_.obj());
- service_->GetDispatcher()->StopBackgroundTask(this);
+ service_->GetPrefetchDispatcher()->StopBackgroundTask(this);
return needs_reschedule_;
}
« no previous file with comments | « no previous file | chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698