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

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

Issue 2463713003: [Offline Pages] Converts MarkAttemptCompleted to use TaskQueue (Closed)
Patch Set: Ternary nit and format fix Created 4 years, 1 month 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_completed_task.h
diff --git a/components/offline_pages/background/mark_attempt_aborted_task.h b/components/offline_pages/background/mark_attempt_completed_task.h
similarity index 52%
copy from components/offline_pages/background/mark_attempt_aborted_task.h
copy to components/offline_pages/background/mark_attempt_completed_task.h
index 80d6367d5c15127325b42adabba5b3a9beb1c053..7997ee5e0298bb2139747861451b67122649eedc 100644
--- a/components/offline_pages/background/mark_attempt_aborted_task.h
+++ b/components/offline_pages/background/mark_attempt_completed_task.h
@@ -2,10 +2,11 @@
// 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_
+#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_
+#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_
#include <stdint.h>
+#include <memory>
#include "components/offline_pages/background/request_queue_store.h"
#include "components/offline_pages/background/update_request_task.h"
@@ -13,12 +14,12 @@
namespace offline_pages {
-class MarkAttemptAbortedTask : public UpdateRequestTask {
+class MarkAttemptCompletedTask : public UpdateRequestTask {
public:
- MarkAttemptAbortedTask(RequestQueueStore* store,
- int64_t request_id,
- const RequestQueueStore::UpdateCallback& callback);
- ~MarkAttemptAbortedTask() override;
+ MarkAttemptCompletedTask(RequestQueueStore* store,
+ int64_t request_id,
+ const RequestQueueStore::UpdateCallback& callback);
+ ~MarkAttemptCompletedTask() override;
protected:
// UpdateRequestTask implementation:
@@ -27,4 +28,4 @@ class MarkAttemptAbortedTask : public UpdateRequestTask {
} // namespace offline_pages
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_ABORTED_TASK_H_
+#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_
« no previous file with comments | « components/offline_pages/background/BUILD.gn ('k') | components/offline_pages/background/mark_attempt_completed_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698