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

Unified 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, 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..b8e9d069bdc71d874497ecf596c1bf6b2b743dfa
--- /dev/null
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -0,0 +1,40 @@
+// 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/scheduler.h"
fgorski 2016/04/28 11:54:59 needed?
Pete Williamson 2016/04/28 20:22:03 Done.
+
+// TODO: include file with SavePageRequest definition.
+
+namespace offline_pages {
+
+// TODO(dougarnett): How to inject Offliner factories and policy objects.
+RequestCoordinator::RequestCoordinator() {
+ // Do setup as needed.
+}
+
+RequestCoordinator::~RequestCoordinator() {
+ // Do cleanup as needed.
+}
+
+// Queues |request| to later load and save when system conditions allow.
+bool RequestCoordinator::SavePageLater(const SavePageRequest& request) {
+ return true;
+}
+
+// Starts processing of one or more queued save page later requests.
+// Returns whether processing was started and that caller should expect
+// a callback. If processing was already active, returns false.
+bool RequestCoordinator::StartProcessing(
+ const ProcessingDoneCallback& callback) {
+ return false;
+}
+
+// Stops the current request processing if active.
+void RequestCoordinator::StopProcessing() {
+
+}
+
+} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698