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_COMPLETED_TASK_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "components/offline_pages/background/request_queue_results.h" | 11 #include "components/offline_pages/core/background/request_queue_results.h" |
12 #include "components/offline_pages/background/update_request_task.h" | 12 #include "components/offline_pages/core/background/update_request_task.h" |
13 #include "components/offline_pages/core/task.h" | 13 #include "components/offline_pages/core/task.h" |
14 | 14 |
15 namespace offline_pages { | 15 namespace offline_pages { |
16 | 16 |
17 class RequestQueueStore; | 17 class RequestQueueStore; |
18 | 18 |
19 class MarkAttemptCompletedTask : public UpdateRequestTask { | 19 class MarkAttemptCompletedTask : public UpdateRequestTask { |
20 public: | 20 public: |
21 MarkAttemptCompletedTask(RequestQueueStore* store, | 21 MarkAttemptCompletedTask(RequestQueueStore* store, |
22 int64_t request_id, | 22 int64_t request_id, |
23 const RequestQueueStore::UpdateCallback& callback); | 23 const RequestQueueStore::UpdateCallback& callback); |
24 ~MarkAttemptCompletedTask() override; | 24 ~MarkAttemptCompletedTask() override; |
25 | 25 |
26 protected: | 26 protected: |
27 // UpdateRequestTask implementation: | 27 // UpdateRequestTask implementation: |
28 void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override; | 28 void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace offline_pages | 31 } // namespace offline_pages |
32 | 32 |
33 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ | 33 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_
H_ |
OLD | NEW |