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_CHANGE_REQUESTS_STATE_TASK_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <unordered_set> | 11 #include <unordered_set> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "components/offline_pages/background/request_queue_store.h" | 15 #include "components/offline_pages/core/background/request_queue_store.h" |
16 #include "components/offline_pages/background/save_page_request.h" | 16 #include "components/offline_pages/core/background/save_page_request.h" |
17 #include "components/offline_pages/core/task.h" | 17 #include "components/offline_pages/core/task.h" |
18 | 18 |
19 namespace offline_pages { | 19 namespace offline_pages { |
20 | 20 |
21 class ChangeRequestsStateTask : public Task { | 21 class ChangeRequestsStateTask : public Task { |
22 public: | 22 public: |
23 ChangeRequestsStateTask(RequestQueueStore* store, | 23 ChangeRequestsStateTask(RequestQueueStore* store, |
24 const std::vector<int64_t>& request_ids, | 24 const std::vector<int64_t>& request_ids, |
25 const SavePageRequest::RequestState new_state, | 25 const SavePageRequest::RequestState new_state, |
26 const RequestQueueStore::UpdateCallback& callback); | 26 const RequestQueueStore::UpdateCallback& callback); |
(...skipping 26 matching lines...) Expand all Loading... |
53 // Callback to complete the task. | 53 // Callback to complete the task. |
54 RequestQueueStore::UpdateCallback callback_; | 54 RequestQueueStore::UpdateCallback callback_; |
55 | 55 |
56 base::WeakPtrFactory<ChangeRequestsStateTask> weak_ptr_factory_; | 56 base::WeakPtrFactory<ChangeRequestsStateTask> weak_ptr_factory_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(ChangeRequestsStateTask); | 58 DISALLOW_COPY_AND_ASSIGN(ChangeRequestsStateTask); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace offline_pages | 61 } // namespace offline_pages |
62 | 62 |
63 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ | 63 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H
_ |
OLD | NEW |