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

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: Add .h files to BUILD.gn. 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..7913928458c8268857c64b422b7c253371155876
--- /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"
+
+// TODO: include file with SavePageRequest definition.
fgorski 2016/04/28 22:18:19 I have that in my patch.
Pete Williamson 2016/04/28 22:30:25 OK, I added your name to the TODO to clear it when
+
+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.
fgorski 2016/04/28 22:18:19 don't have to repeat the documentation.
Pete Williamson 2016/04/28 22:30:25 Done.
+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.
fgorski 2016/04/28 22:18:19 ditto
Pete Williamson 2016/04/28 22:30:25 Done.
+bool RequestCoordinator::StartProcessing(
+ const ProcessingDoneCallback& callback) {
+ return false;
+}
+
+// Stops the current request processing if active.
fgorski 2016/04/28 22:18:19 ditto
Pete Williamson 2016/04/28 22:30:25 Done.
+void RequestCoordinator::StopProcessing() {
+
fgorski 2016/04/28 22:18:19 nit: remove empty line
Pete Williamson 2016/04/28 22:30:25 Done.
+}
+
+} // namespace offline_pages
« components/offline_pages.gypi ('K') | « 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