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

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

Issue 1929223002: Add skeletons for the factories to create the request coordinator and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual merge of changes in the base changelist. 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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698