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

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: Remove commented out lines in the build file. 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
« no previous file with comments | « components/offline_pages/background/request_coordinator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1e443097b555a7248baa179725ad98478acc54c4
--- /dev/null
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -0,0 +1,38 @@
+// 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"
+
dougarnett 2016/04/27 19:15:35 nit - drop this empty line
Pete Williamson 2016/04/27 21:03:46 There is supposed to be a blank line here. Normal
+#include "components/offline_pages/background/scheduler.h"
+
+// 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.
dougarnett 2016/04/27 19:15:35 might be good to include rest of .h comment wrt co
Pete Williamson 2016/04/27 21:03:46 Done.
+bool RequestCoordinator::StartProcessing(
+ const ProcessingDoneCallback& callback) {
+ return true;
dougarnett 2016/04/27 19:15:35 false until/unless this will call callback
Pete Williamson 2016/04/27 21:03:46 Done.
+}
+
+// Stops the current request processing if active.
+void RequestCoordinator::StopProcessing() {
+
+}
+
+} // namespace offline_pages
« no previous file with comments | « components/offline_pages/background/request_coordinator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698