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

Unified Diff: components/offline_pages/background/request_coordinator.h

Issue 2015603002: PrerenderingLoader initial integration with PrerenderManager/PrerenderHandle and make it unit-testa… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds mock adapter member initialization in constructor Created 4 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
Index: components/offline_pages/background/request_coordinator.h
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
index 4ab1e5a0680833a31c30f79eec2e1cec28cbb932..77c24948a2effb2643dec93169645e9d977fee24 100644
--- a/components/offline_pages/background/request_coordinator.h
+++ b/components/offline_pages/background/request_coordinator.h
@@ -60,7 +60,7 @@ class RequestCoordinator :
Scheduler* GetSchedulerForTesting() { return scheduler_.get(); }
// Returns the status of the most recent offlining.
- Offliner::CompletionStatus last_offlining_status() {
+ Offliner::RequestStatus last_offlining_status() {
return last_offlining_status_;
}
@@ -68,10 +68,10 @@ class RequestCoordinator :
void AddRequestResultCallback(RequestQueue::AddRequestResult result,
const SavePageRequest& request);
- void SendRequestToOffliner(SavePageRequest& request);
+ void SendRequestToOffliner(const SavePageRequest& request);
void OfflinerDoneCallback(const SavePageRequest& request,
- Offliner::CompletionStatus status);
+ Offliner::RequestStatus status);
// RequestCoordinator takes over ownership of the policy
std::unique_ptr<OfflinerPolicy> policy_;
@@ -82,7 +82,7 @@ class RequestCoordinator :
// Scheduler. Used to request a callback when network is available. Owned.
std::unique_ptr<Scheduler> scheduler_;
// Status of the most recent offlining.
- Offliner::CompletionStatus last_offlining_status_;
+ Offliner::RequestStatus last_offlining_status_;
DISALLOW_COPY_AND_ASSIGN(RequestCoordinator);
};
« no previous file with comments | « components/offline_pages/background/offliner.h ('k') | components/offline_pages/background/request_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698