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/offliner_policy.h" | |
8 #include "components/offline_pages/background/scheduler.h" | |
9 | |
10 namespace offline_pages { | |
11 | |
12 RequestCoordinator::RequestCoordinator( | |
13 OfflinerPolicy* policy, OfflinerFactory* factory) { | |
14 // Do setup as needed. | |
15 // TODO(petewil): Assert policy not null. | |
16 policy_ = policy; | |
17 factory_ = factory; | |
18 } | |
19 | |
20 RequestCoordinator::~RequestCoordinator() { | |
21 delete policy_; | |
fgorski
2016/04/29 04:16:46
use unique_ptr which solves this.
Pete Williamson
2016/05/02 20:51:14
I didn't want to use unique_ptr yet, because I thi
| |
22 } | |
23 | |
24 bool RequestCoordinator::SavePageLater(const SavePageRequest& request) { | |
25 return true; | |
26 } | |
27 | |
28 bool RequestCoordinator::StartProcessing( | |
29 const ProcessingDoneCallback& callback) { | |
30 return false; | |
31 } | |
32 | |
33 void RequestCoordinator::StopProcessing() { | |
34 } | |
35 | |
36 } // namespace offline_pages | |
OLD | NEW |