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

Unified Diff: components/offline_pages/background/mark_attempt_aborted_task.h

Issue 2438503003: [Offline pages] Add MarkAttemptAbortedTask to Request Queue (Closed)
Patch Set: Addressing feedback -- adding comments and documentation Created 4 years, 2 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/mark_attempt_aborted_task.h
diff --git a/components/offline_pages/background/mark_attempt_aborted_task.h b/components/offline_pages/background/mark_attempt_aborted_task.h
new file mode 100644
index 0000000000000000000000000000000000000000..80d6367d5c15127325b42adabba5b3a9beb1c053
--- /dev/null
+++ b/components/offline_pages/background/mark_attempt_aborted_task.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_ABORTED_TASK_H_
+#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_ABORTED_TASK_H_
+
+#include <stdint.h>
+
+#include "components/offline_pages/background/request_queue_store.h"
+#include "components/offline_pages/background/update_request_task.h"
+#include "components/offline_pages/core/task.h"
+
+namespace offline_pages {
+
+class MarkAttemptAbortedTask : public UpdateRequestTask {
+ public:
+ MarkAttemptAbortedTask(RequestQueueStore* store,
+ int64_t request_id,
+ const RequestQueueStore::UpdateCallback& callback);
+ ~MarkAttemptAbortedTask() override;
+
+ protected:
+ // UpdateRequestTask implementation:
+ void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override;
+};
+
+} // namespace offline_pages
+
+#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_ABORTED_TASK_H_
« no previous file with comments | « components/offline_pages/background/BUILD.gn ('k') | components/offline_pages/background/mark_attempt_aborted_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698