| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "components/offline_pages/background/request_queue_store.h" | 10 #include "components/offline_pages/background/request_queue_store.h" |
| 11 #include "components/offline_pages/background/update_request_task.h" | 11 #include "components/offline_pages/background/update_request_task.h" |
| 12 #include "components/offline_pages/core/task.h" | 12 #include "components/offline_pages/core/task.h" |
| 13 | 13 |
| 14 namespace offline_pages { | 14 namespace offline_pages { |
| 15 | 15 |
| 16 class MarkAttemptStartedTask : public UpdateRequestTask { | 16 class MarkAttemptStartedTask : public UpdateRequestTask { |
| 17 public: | 17 public: |
| 18 MarkAttemptStartedTask(RequestQueueStore* store, | 18 MarkAttemptStartedTask(RequestQueueStore* store, |
| 19 int64_t request_id, | 19 int64_t request_id, |
| 20 const RequestQueueStore::UpdateCallback& callback); | 20 const RequestQueueStore::UpdateCallback& callback); |
| 21 ~MarkAttemptStartedTask() override; | 21 ~MarkAttemptStartedTask() override; |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 // UpdateRequestTask implementation: | 24 // UpdateRequestTask implementation: |
| 25 void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override; | 25 void UpdateRequestImpl( |
| 26 std::unique_ptr<QueueResults::UpdateRequestsResult> result) override; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace offline_pages | 29 } // namespace offline_pages |
| 29 | 30 |
| 30 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ | 31 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_STARTED_TASK_H_ |
| OLD | NEW |