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

Side by Side Diff: components/offline_pages/background/mark_attempt_completed_task.h

Issue 2473553004: Request Picker task (Closed)
Patch Set: Replace use of header file with forward declare for enum 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 unified diff | Download patch
OLDNEW
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_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ 6 #define COMPONENTS_OFFLINE_PAGES_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/background/request_queue_store.h" 12 #include "components/offline_pages/background/request_queue_store.h"
fgorski 2016/11/09 17:58:06 nit: forward declare RequestQueueStore and remove
Pete Williamson 2016/11/09 23:53:55 Done. Would you like me to aslo make a parallel c
fgorski 2016/11/10 19:15:50 Not right now. If you can avoid adding files to th
12 #include "components/offline_pages/background/update_request_task.h" 13 #include "components/offline_pages/background/update_request_task.h"
13 #include "components/offline_pages/core/task.h" 14 #include "components/offline_pages/core/task.h"
14 15
15 namespace offline_pages { 16 namespace offline_pages {
16 17
17 class MarkAttemptCompletedTask : public UpdateRequestTask { 18 class MarkAttemptCompletedTask : public UpdateRequestTask {
18 public: 19 public:
19 MarkAttemptCompletedTask(RequestQueueStore* store, 20 MarkAttemptCompletedTask(RequestQueueStore* store,
20 int64_t request_id, 21 int64_t request_id,
21 const RequestQueueStore::UpdateCallback& callback); 22 const RequestQueueStore::UpdateCallback& callback);
22 ~MarkAttemptCompletedTask() override; 23 ~MarkAttemptCompletedTask() override;
23 24
24 protected: 25 protected:
25 // UpdateRequestTask implementation: 26 // UpdateRequestTask implementation:
26 void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override; 27 void UpdateRequestImpl(std::unique_ptr<UpdateRequestsResult> result) override;
27 }; 28 };
28 29
29 } // namespace offline_pages 30 } // namespace offline_pages
30 31
31 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_ 32 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_MARK_ATTEMPT_COMPLETED_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698