Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/offline_pages/background/request_coordinator.h" | |
| 6 | |
| 7 #include "components/offline_pages/background/scheduler.h" | |
|
fgorski
2016/04/28 11:54:59
needed?
Pete Williamson
2016/04/28 20:22:03
Done.
| |
| 8 | |
| 9 // TODO: include file with SavePageRequest definition. | |
| 10 | |
| 11 namespace offline_pages { | |
| 12 | |
| 13 // TODO(dougarnett): How to inject Offliner factories and policy objects. | |
| 14 RequestCoordinator::RequestCoordinator() { | |
| 15 // Do setup as needed. | |
| 16 } | |
| 17 | |
| 18 RequestCoordinator::~RequestCoordinator() { | |
| 19 // Do cleanup as needed. | |
| 20 } | |
| 21 | |
| 22 // Queues |request| to later load and save when system conditions allow. | |
| 23 bool RequestCoordinator::SavePageLater(const SavePageRequest& request) { | |
| 24 return true; | |
| 25 } | |
| 26 | |
| 27 // Starts processing of one or more queued save page later requests. | |
| 28 // Returns whether processing was started and that caller should expect | |
| 29 // a callback. If processing was already active, returns false. | |
| 30 bool RequestCoordinator::StartProcessing( | |
| 31 const ProcessingDoneCallback& callback) { | |
| 32 return false; | |
| 33 } | |
| 34 | |
| 35 // Stops the current request processing if active. | |
| 36 void RequestCoordinator::StopProcessing() { | |
| 37 | |
| 38 } | |
| 39 | |
| 40 } // namespace offline_pages | |
| OLD | NEW |