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

Side by Side Diff: components/offline_pages/background/request_coordinator.cc

Issue 1914333002: Adding a BUILD file for both gyp and gn for the new background_offlining (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR changes per DougArnett 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698