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

Unified 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, 8 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.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fe768b11778e4b35648149f60987f85422035a62
--- /dev/null
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/offline_pages/background/request_coordinator.h"
+
+#include "components/offline_pages/background/offliner_policy.h"
+#include "components/offline_pages/background/scheduler.h"
+
+namespace offline_pages {
+
+RequestCoordinator::RequestCoordinator(
+ OfflinerPolicy* policy, OfflinerFactory* factory) {
+ // Do setup as needed.
+ // TODO(petewil): Assert policy not null.
+ policy_ = policy;
+ factory_ = factory;
+}
+
+RequestCoordinator::~RequestCoordinator() {
+ 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
+}
+
+bool RequestCoordinator::SavePageLater(const SavePageRequest& request) {
+ return true;
+}
+
+bool RequestCoordinator::StartProcessing(
+ const ProcessingDoneCallback& callback) {
+ return false;
+}
+
+void RequestCoordinator::StopProcessing() {
+}
+
+} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698